Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS string with escape newline ('\) breaks syntax hightlighting #159730

Closed
hibiyasleep opened this issue Sep 1, 2022 · 1 comment
Closed

CSS string with escape newline ('\) breaks syntax hightlighting #159730

hibiyasleep opened this issue Sep 1, 2022 · 1 comment

Comments

@hibiyasleep
Copy link

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

  • VS Code Version: 1.70.2
  • OS Version: macOS 12.4

Steps to Reproduce:

  1. Open empty document, set language to CSS.
  2. write: body { content: 'a\ (newline here) b'; }
  3. write some valid (or not) CSS code, all syntax highlighting gone.

when inspected, \ and all after is interpreted as constant.character.escape.newline.css.

image

css3 specs here: https://www.w3.org/TR/css-syntax-3/#consume-string-token
css21 specs here (with example of this case): https://www.w3.org/TR/CSS21/syndata.html#strings

@hibiyasleep hibiyasleep changed the title CSS string with escape newline (\\\n) breaks syntax hightlighting CSS string with escape newline ('\) breaks syntax hightlighting Sep 1, 2022
@aeschli aeschli removed their assignment Sep 1, 2022
@aeschli
Copy link
Contributor

aeschli commented Sep 1, 2022

Duplicate of atom/language-css#181

@aeschli aeschli marked this as a duplicate of atom/language-css#181 Sep 1, 2022
@aeschli aeschli closed this as completed Sep 1, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants