Multi-line string literals break CSS syntax highlighting
alexr00 opened this issue · comments
Alex Ross commented
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Multi-line string literals break CSS syntax highlighting.
Steps to Reproduce
- 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 339e960
Additional Information
Originally from @dansebcar in microsoft/vscode#125739