That's not practicable !
I would have to define from one to about fifty letters.
Another idea ?
Highlight Object-Methods possible ?
- Rickard Johansson
- Site Admin
- Posts: 6783
- Joined: 19 Jul 2006 14:29
Re: Highlight Object-Methods possible ?
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 ?
Yes !
AutoIt can contain precompiler-options like '#test=xyz.ext'
In this example the fileextension is marked as method
AutoIt can contain precompiler-options like '#test=xyz.ext'
In this example the fileextension is marked as method

- Rickard Johansson
- Site Admin
- Posts: 6783
- Joined: 19 Jul 2006 14:29
Re: Highlight Object-Methods possible ?
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]+
E.g.
#precompiler options=#[a-zA-Z-\.=]+
#Objects=(?<=\w\.)[a-zA-Z]+
Re: Highlight Object-Methods possible ?
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).
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 ?
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:
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 ?
Is there a possibility ?
- Rickard Johansson
- Site Admin
- Posts: 6783
- Joined: 19 Jul 2006 14:29
Re: Highlight Object-Methods possible ?
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.
- Rickard Johansson
- Site Admin
- Posts: 6783
- Joined: 19 Jul 2006 14:29
Re: Highlight Object-Methods possible ?
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+
[Keywords]
#Own functions=\$\w+\.\K\w+
Re: Highlight Object-Methods possible ?
Great, i will wait to test it ! Thanks....