mark-wiemer-org/ahkpp

Comment highlighted differently depending on indentation

Closed this issue · 2 comments

RussF1 commented

Code snippet

; Test::Comment
    ; Test::Comment

Expected behavior

Both comments should be highlighted identically

Editor tokens and scopes

image

Additional context

Seems to only happen when there is a double colon between words and the comment is indented via tab or spaces.

image

Very strange. Comment detection has the highest priority. Example text is captured by this regex (?<=^|\s+)(;).*, but somehow it is not captured in VSCode's grammar parser and jumps to hotkey detection.

Very strange. Comment detection has the highest priority. Example text is captured by this regex (?<=^|\s+)(;).*, but somehow it is not captured in VSCode's grammar parser and jumps to hotkey detection.

Now I got it. Fix on the way...