This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 140
Adding a script tag kills syntax highlightingΒ #242
Copy link
Copy link
Open
Labels
Description
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
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
- Open a new file
- Set the syntax as HTML, either by saving the file as HTML or using the syntax selector
- Expand the
htmlsnippet (this step may be optional, but it's an easy way to see the lack of highlighting) - Type
<script></scrip - Type
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
alex-kim-dev, Andrewknackstedt, Thwarter, belcar-s, zthornto and 2 more



