vscode-language-babel icon indicating copy to clipboard operation
vscode-language-babel copied to clipboard

Wrong Syntax Highliting

Open HamaDler opened this issue 2 years ago • 0 comments

Describe the issue In a .js file when having a string literal that includes '/*' , it thinks you're trying to start a multiline comment. This messes up syntax highlighting for that lines and the lines after it.

It happened to me when I wanted to have a wildcard selector for path names as you see in the screenshots below.

Screenshot of Current Behavior image

Screenshot of Expected Behavior image

Workarounds The issue only happens when using string literals, if you separate the string like this, the issue goes away. image

HamaDler avatar Jan 30 '23 13:01 HamaDler