vscode-SAS.tmLanguage icon indicating copy to clipboard operation
vscode-SAS.tmLanguage copied to clipboard

Line comment to eager to highlight

Open MadsAdrian opened this issue 3 years ago • 0 comments

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: image

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.

MadsAdrian avatar Mar 10 '21 08:03 MadsAdrian