scss syntax highlight broken after update to Sublime 3
cogliaWho opened this issue · 11 comments
Hello!
Thanks for reporting this. One thing which would be super helpeful is if you could give us a code for a vue file which reproduces this issue, since I can't reproduce it on my end. I understand the code you sent is private, but if you can make a vue file which reproduces this issue that'll help us a lot to solve it.
The problem is actually with the JS side, not the SCSS side. The syntax thinks that the JavaScript part hasn't ended, and highlights SCSS as it's JS. Often putting a semicolon at the end of your export statement fixes it. Another thing that works for this situation is switching to the Babel extension. Install babel syntax, and disable the builtin JavaScript extension.
That said, this is a valid bug and I'm keeping it open until we find a fix for it. @Thom1729 any idea what could be causing this? The embed should have hopefully prevented scope from leaking out of </script>.
I'd need to see the beginning of the <script> tag. A working example would be extremely helpful here.
Are you using a third-party JavaScript syntax?
(maybe unrelated but) My vue-syntax-highlight just broke after I updated sublime to 3.1. I reinstalled the extension and it works for now.
@cogliaWho Please copy paste the vue file here or in a gist whenever you can :) I don't think github processes attachments to email replies.
@alexmoreno thanks for reporting, keep us updated if you encounter problems.
Thank you @cogliaWho
This seems to be working fine for me:
Things to try:
- It might be the case that your internal JavaScript package is not updated or isn't set up properly. You can consider backing up your sublime text folder, deleting it, and running ST3 to create a fresh setup, and re-install. However this can be time consuming if you've extensively customized.
- Check the version of vue-syntax-highlight installed, if it's 3.3.1
Gonna close this since we can't repro this on multiple tries, @cogliaWho. Please do re-open if issue persists.
I just had the same problem and found some errors in the Sublime Text console coming from a package called Vuejs Complete Package. Just removed that and the highlighting started working again.
I am having this same issue. I did a clean install of sublime text v3.2.2 for Mac OS including deleting the application and its associated support files in "~/Library/Application Support/Sublime Text 3/". As you can see in the screenshots, the only packages I have installed are "Package Control" and "Vue Syntax Highlight". The strange thing is that highlights works correctly if I set the lang attribute to anything but "scss" or "sass", even with strange values like "notcss".




