-
Notifications
You must be signed in to change notification settings - Fork 591
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
[Vue] Broken highlighting in Build 3154 #1302
Comments
Probably you should log this at https://github.com/vuejs/vue-syntax-highlight/issues, though it is probably related to this: https://forum.sublimetext.com/t/dev-build-3153/33014/76 |
It's possible that this could be a result of #1009. The Vue syntax (an old export default {
name: 'test'
}
</script>/
The posted code is similar, but that the final / is missing. This is not valid JavaScript. The automatic semicolon insertion algorithm cannot fix it. The new JavaScript syntax will, however, do its best, including treating However, that code is not plain JavaScript. It is JavaScript embedded in HTML via a Incidentally, try adding a semicolon after the object literal; that might work around the Vue bug by popping the expression and export statement contexts. |
Thanks for the detailed comment @Thom1729, I've posted over at the vuejs repo for now. Adding a semicolon does indeed fix the highlighting. |
This is with the Vue Syntax Highlighting package installed.
The text was updated successfully, but these errors were encountered: