Open calebmeyer opened 4 years ago
Saving then reopening the file fixes the issue most of the time...
I have the same issue...
Seeing the same issue.
After turning off Tree Sitter in Settings > Core > Use Tree Sitter Parsers color highlighting works for HTML.
Leaving the Tree Sitter Parser setting on, but switching to an HTML grammar that doesn't use Tree Sitter also fixes the issue.
So, it's the Tree Sitter parser.
I had this bug months ago, but I was not able to reproduce it today (July 8, 2021), even in safe mode.
Prerequisites
Description
When you add a script tag (with type, source, or no attributes at all), all syntax highlighting turns off for the current file. Removing the script tag adds it back in.
Steps to Reproduce
html
snippet (this step may be optional, but it's an easy way to see the lack of highlighting)<script></scrip
t
Expected behavior:
All syntax is highlighted
Actual behavior:
No syntax is highlighted (all becomes gray, syntax classes disappear from the spans)
Reproduces how often:
100% of the time
Versions
Additional Information
No errors in the console