-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSCustom breaks vue syntax highlighting #20
Comments
@ellipticaldoor What version of Sublime and of Vue Syntax Highlight are you using? This is (was) a known issue with the Vue package. The way that it was importing the JavaScript syntax was incorrect, and when the core JavaScript syntax was updated the Vue syntax broke. The Vue syntax has since been rewritten and should no longer suffer from the above issue. I have just tested this to confirm that the issue no longer exists. However, the new Vue syntax uses the It is not possible to remedy the problem on the JavaScript end, because the internal implementation details that the old Vue syntax implicitly relied upon were causing systematic bugs and blocking new features. The old Vue syntax works with babel-sublime because it suffers from those bugs. There are two immediate workarounds. First, upgrading to dev build 3153 or later will give you the new, fixed Vue syntax. Second, using explicit semicolons in your JavaScript rather than relying on the automatic semicolon insertion algorithm will avoid the cases that babel-sublime and the old Vue syntax get wrong. (It seems that the official Vue template omits semicolons, which is generally considered poor practice but is actually advocated by some styles. Omitting semicolons while using babel-sublime is likely to trigger a number of subtle bugs.) If a new stable build is released soon, the problem will go away altogether. Failing that, it may be possible to backport the new Vue syntax to work with stable build 3143. I'll open up an issue over there and see if anyone is willing to do that. |
Awesome! It works just fine on latest sublime dev 3157 |
It looks like the latest version on master of vue-syntax-highlight has this problem |
To reproduce this behaviour first you have to install the package Vue Syntax Highlight.
After installing JSCustom and restarting sublime text, vue components start to look like in the screenshot above.
Even if I uninstall JSCustom the highlight stays broken, I have to manually remove the folder:
These errors are easy to see when using the official vue template https://github.com/vuejs-templates/webpack
The text was updated successfully, but these errors were encountered: