Closed MrSimmmons closed 3 years ago
This issue also occurs in language-typescript files -- perhaps something further up the chain is causing it?
Few things I've found.
If you start typing the HTML first and then type the .innerHTML
part the highlighting works fine.
If you put a semicolon on the end of the line after you type some HTML in the back ticks it fixes the highlighting. But it you add it to the line before you type any HTML the highlighting stays broken.
Kinda strange
Prerequisites
Description
Javascript syntax highlighting breaks by using back ticks with
innerHTML
which then spreads around the file if edited.Steps to Reproduce
.js
file)Expected behavior:
All syntax highlight should work properly.
Actual behavior:
Seems to break the syntax highlighting of its own line, but then if you try to edit lines around it, the broken syntax highlighting seems to spread through the rest of the file. If you open a JS file that already has this line in it, depending on the size of the file will depend on how many lines don't get the syntax highlighting. Its really quite weird.
Reproduces how often: Every time
Versions
macOS: 10.14.6
Atom: 1.48.0 Electron: 5.0.13 Chrome: 73.0.3683.121 Node: 12.0.0
Additional Information
Video of the syntax highlighting breaking:
Video of the syntax highlighting issue spreading though the file:
(Sorry for the low quality)