Open kczx3 opened 6 years ago
Somehow, it seems to be catching the leading whitespace of the method name...
The line that should be highlighting that line is https://github.com/stef-levesque/vscode-autohotkey/blob/92a2200b74c1182faa823881fb766effd5e0a1d1/syntaxes/ahk.tmLanguage#L142
However, it is being overridden when it has whitespace in front of it by https://github.com/stef-levesque/vscode-autohotkey/blob/92a2200b74c1182faa823881fb766effd5e0a1d1/syntaxes/ahk.tmLanguage#L305
Changing the second regex to be: <string>^(\s*\w+)(\()</string>
fixes this specific issue. However, I am not sure of the implications of changing that line specifically will be for other scenarios.
I have found a particular class that has its methods and parameters highlighted incorrectly. I cannot seem to determine why though. The method names are being colored like hotkey declarations and the function arguments are all colored as if it is a single string. The class is found here: TreeList Source included as well: