atom / language-css

CSS package for Atom
Other
59 stars 77 forks source link

Multi-line string literals break CSS syntax highlighting #181

Open alexr00 opened 3 years ago

alexr00 commented 3 years ago

Prerequisites

Description

Multi-line string literals break CSS syntax highlighting.

Steps to Reproduce

  1. Create a CSS file with this content
a::after {
    content: "long\
        value";
}

Expected behavior:

A multi-line string literal does not affect other rules.

Actual behavior:

There is no syntax highlighting after the backslash (any subsequent CSS is the same colour as the backslash itself).

Reproduces how often:

100%

Versions

From commit 339e9600ce4e024fa97a711d6330e3b5344fcbdc

Additional Information

Originally from @dansebcar in https://github.com/microsoft/vscode/issues/125739