-
Notifications
You must be signed in to change notification settings - Fork 231
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
Not using configured JS syntax inside <script> block #194
Comments
https://packagecontrol.io/packages/JavaScriptNext%20-%20ES6%20Syntax is not maintained for 2 years now. Official syntax by now has implemented probably all and more of what JavaScriptNext supports. It's not a good idea to keep using it. Even if you think that highlighting is better in it ("better" being subjective as official highlighting might make more sense consistency wise). |
Have you tried disabling the default javascript package? Ctrl+Shift+P -> Disable Package -> JavaScript |
OK, several separate thoughts:
|
In fact, I've removed JSNext and re-enabled the built-in JavaScript syntax, and I notice several differences between the scopes from a The
but in a with:
Doesn't seem like that is the same syntax highlighter being used for the JS part... |
The documentation suggests the
<script>
block will use whatever syntax is used for regular.js
files, but I'm getting very different results in Vue SFC<script>
vs plain.js
files. My default syntax is JavaScript Next, and looks like this (correct):but that code in a Vue SFC looks like this (many things miscoloured):
There are lots of other differences too, and I can get the effect in plain
.js
files by switching to the built-in Javascript syntax (which is the reason I moved to JS Next). So, is there a way to be explicit about which syntax to use, or is there just a bug not picking up the configured.js
syntax setting?The text was updated successfully, but these errors were encountered: