microsoft / vscode-css

CSS Textmate grammar for syntax highlighting
Other
15 stars 11 forks source link

CSS multiline string incorrect syntax highlighting #28

Open niwazukihon opened 5 months ago

niwazukihon commented 5 months ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Create a css file. Write, for example
    @import url('a-really-long\
    -url');
  2. The syntax highlighting is wrong. It seems to not interpret the string as a whole.

This was mentioned in issue microsoft/vscode#125739, which was closed and locked with a reference to another repo, but that repo was archived. Is there a plan to fix this bug?

RedCMD commented 4 months ago

should move report to https://github.com/microsoft/vscode-css

caused by \\s*. it matches the ending newline. resulting in the begin anchor \\G being placed at the beginning of the next line (VSCode TextMate bug?) causing ^(?<!\\G) to always fail image

I don't know why \\s* was placed there as it does nothing other than cause issues