Skip to content
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 Syntax Highlight 3.2.5 does not work in Siblime 3157 #128

Closed
titovmaxim opened this issue Feb 17, 2018 · 7 comments
Closed

Vue Syntax Highlight 3.2.5 does not work in Siblime 3157 #128

titovmaxim opened this issue Feb 17, 2018 · 7 comments

Comments

@titovmaxim
Copy link

Installed the latest Sublime 3157, use Package control to install Vue Syntax Highlight 3.2.5. As a result .vue files are almost not highlighted.

The example is shown in the screenshot attached.

2018-02-17 15 11 23

@skyronic
Copy link
Collaborator

Does this issue also happen when the template tag is above the <script>?

@titovmaxim
Copy link
Author

titovmaxim commented Feb 17, 2018

Yes, does not matter. To be clear. It happens on all files. Even on freshly created by vue-cli

@JGJP
Copy link

JGJP commented May 8, 2018

Adding a semicolon after the last closing bracket (line 9 in @titovmaxim's example) solves this problem for now, I'd rather not have to add this to all my files though.

@skyronic
Copy link
Collaborator

skyronic commented May 8, 2018

I can't seem to reproduce this

image

However, this seems to be because of the way sublime works, and the way the JavaScript standard has been implemented. You can see a reply by a dev who works on the Sublime JS sytnax here - #107 (comment)

Essentially the ; is required at the end of an export statement even though most people don't use it. If it isn't placed, the export statement doesn't "end", and this messes up the interpreter.

I personally use the Babel sublime package, and I find that it works much better for vue's JS code , you have to install Babel extension and disable the builtin JS extension.

@skyronic
Copy link
Collaborator

skyronic commented May 9, 2018

This has been fixed and new version will be released soon.

@skyronic skyronic closed this as completed May 9, 2018
@Reeseman
Copy link

Screen Shot 2021-09-26 at 5 30 20 PM

Not fixed

@skyronic
Copy link
Collaborator

@Reeseman what version of sublime is this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants