language-autohotkey
language-autohotkey copied to clipboard
Hotstrings that include ; showing as comments
I have lots of hotstrings that begin with a semi-colon (e.g. :*:;ahk::AutoHotKey
) and they're marked as comments.
I swear I brought this up once before and was able to fix it but I can't find it now.
I'm not a programmer and only vaguely understand Atom configuration but if you can point me in the right direction I'd appreciate it.
comment: "inline comments" captures: "1": name: ".comment.line.ahk" "2": name: ".punctuation.definition.semi-colon.comment.ahk" match: "((;).*)"
I believe what I want is to tweak the last line above.
LOL, Made another attempt and this time I restarted Atom and it appears to have worked.
I change that line to match: "([^:](;).*)"
which is probably very specific to my use-case but it works so I'm happy. Leaving this here so that if I need it again in six months I'll be able to find it.