Closed myfonj closed 6 years ago
For demonstration, current highlight:
Correct highlight:
Using the RegExp '^/*' and '^*/' should work then. I'll have a look at it tomorrow.
Yup. It is not clearly stated in docs, but testing revealed that whitespace is not counted to the beginning of a line here, just like in other tokens already in syntax. So that's why ^\s*/\*
in PR.
And one other quite weird thing: unbalanced */
itself yields no syntax error (provided it starts a line) and is simply ignored if there was no /*
above. So perhaps it would be relevant to add such token as well.
Any chance bumping this fix to the Marketplace?
Yes, I'll push a new release this week.
https://autohotkey.com/docs/Language.htm#comments
It has quite nasty effect that there is no such thing as
/* */
in AHK we are probably used to form other languages: