Closed joedf closed 4 years ago
Wouldnt \s be more elegant in describing a whitespace char. Like follows
<string>^\s*/\*</string>
<key>end</key>
<string>^\s*\*/</string>
I think was worried about new line characters. I'll give it go later to test this.
You're right. I think I wanted to use \s
, but I think I was being cautious of new lines. I realize that the ^
was there anyway, ahha
Anyway, I have amended the change. 👍
The documentation specifies:
Source: https://www.autohotkey.com/docs/Language.htm#comments
The implementation found in
AutoHotkey.tmLanguage
is correct: https://github.com/ahkscript/SublimeAutoHotkey/blob/951f41ab2e6c1624903538bbd4648b689389f188/AutoHotkey.tmLanguage#L36-L38However, this is broken if comments are indented such as:
Running the above test script executes with no warnings or errors, and shows only two message boxes (1,2).
I have posted a new issue under
Lexikos/AutoHotkey_L-Docs
: https://github.com/Lexikos/AutoHotkey_L-Docs/issues/398The implementation should instead be:
Comments?