Closed FlamingTempura closed 8 years ago
There has been a great deal of work on the JavaScript syntax since the release of 3103. To test the current version, copy the contents of the current JavaScript.sublime-syntax
to a new view in Sublime, then save the file as Packages/JavaScript/JavaScript.sublime-syntax
where Packages
is ~/.config/sublime-text-3/Packages
on Linux. You'll have to create the JavaScript
folder manually. Depending on your system's setup, you may not be able to directly access the .config
folder through Sublime's Save dialog. As a workaround, just create a symlink:
ln -s ~/.config ~/config
and save in ~/config/sublime-text-3/Packages/JavaScript
.
Once done, the highlighting should correct itself automagically. If not, close and reopen the view. It should now look like this (using my Neon Color Scheme):
or with the default Monokai color scheme:
That fixed it, thanks!
If a string contains an escaped single quote followed by a colon, the remainder of the file is incorrectly highlighted. For example:
appears in Sublime Text 3 as:
It appears to got back to normal following an object declaration.
Build 3103, Ubuntu 14.04