vscode-SAS.tmLanguage
vscode-SAS.tmLanguage copied to clipboard
Line comment to eager to highlight
Hello,
I think the regex for the line_comment_string.begin
need some work. It is not a line comment if *
and ;
are not on the same line, no?
Example of (what I consider) wrong highlighting:
https://github.com/77QingLiu/vscode-SAS.tmLanguage/blob/9dc00fecb3835f8ff38f5eb35dfc14f2bdef6875/syntaxes/sas.tmLanguage.json#L329
i think something like ^[\s%]*\*[^\n]*;[^\n]*$
would do the trick, but I have not tested it extensively.