Page 2 of 2

Re: Highlight Object-Methods possible ?

Posted: 29 Jul 2013 21:41
by micha_he
That's not practicable !
I would have to define from one to about fifty letters.

Another idea ?

Re: Highlight Object-Methods possible ?

Posted: 30 Jul 2013 10:04
by Rickard Johansson
Why can't you use something like (?<=\w\.)[a-zA-Z]+ :?: Do you really have to check for the $ sign?

Re: Highlight Object-Methods possible ?

Posted: 30 Jul 2013 11:47
by micha_he
Yes !

AutoIt can contain precompiler-options like '#test=xyz.ext'

In this example the fileextension is marked as method :(

Re: Highlight Object-Methods possible ?

Posted: 30 Jul 2013 13:35
by Rickard Johansson
You could highlight the precompiler-options as well and put this keyword group before the object method group.

E.g.

#precompiler options=#[a-zA-Z-\.=]+
#Objects=(?<=\w\.)[a-zA-Z]+

Re: Highlight Object-Methods possible ?

Posted: 30 Jul 2013 14:21
by micha_he
Not pretty, but a possible solution.

P.S.: This workaround is not yet useful !
The pattern '.xyz' also occurs in other combinations like '#include <GUIConstants.au3>' (here marked '.au3' as method) or like '#Region dummytext Form=Name.ext' (here also the extension marked as method).

Re: Highlight Object-Methods possible ?

Posted: 16 Jan 2014 12:53
by micha_he
Hallo Rickard.
Can you change it, that we can use RegEx's like "(?:\$\w+\.)", "(?<=\$\w+\.)" or "\$\w+\.\K", to delete the var-name with a undefinied lenght from the match ?
Or is the RegEx in RJTED a fixed Dll or other library ? I can not find a solution to highlicht only the method after the ".".

Here is a example-code:

Code: Select all

; This are Methods
$def.abc1
$1abc.3def
xyz $abc.3def
xyz $1abcdef.3ghi

; This not
#test=test.ico
xyz abcd.xy99z
$xyz bcd.xy99z
_Test()

Re: Highlight Object-Methods possible ?

Posted: 26 Jan 2014 15:17
by micha_he
Is there a possibility ?

Re: Highlight Object-Methods possible ?

Posted: 01 Feb 2014 15:16
by Rickard Johansson
I can't make changes to the regex dll file. I'll try to use a newer library but it will take some time to make it work.

Re: Highlight Object-Methods possible ?

Posted: 12 Feb 2014 13:23
by Rickard Johansson
I've replaced the old regex library and you can use something like this in the next version (v8.90):

[Keywords]
#Own functions=\$\w+\.\K\w+

Re: Highlight Object-Methods possible ?

Posted: 12 Feb 2014 14:46
by micha_he
Great, i will wait to test it ! Thanks....