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 Component script tag not highlighting properly #189

Open
dshcheung opened this issue Oct 18, 2019 · 1 comment
Open

Vue Component script tag not highlighting properly #189

dshcheung opened this issue Oct 18, 2019 · 1 comment

Comments

@dshcheung
Copy link

Screen Shot 2019-10-18 at 3 47 09 PM

on the left is Vue Component Syntax (*.vue)
on the right is Javascript (Babel) Syntax (*.jsx)

for some reason when its <script></script> in *.vue , the syntax doesn't display the same as in *.jsx files

is there a setting i am missing something?

@abjugard
Copy link

abjugard commented Nov 8, 2019

I think the .vue extension is meant to be used with Single File Components, not pure jsx. It even says so in the readme for this project:

Sublime Text Syntax highlighting for single-file Vue.js components (enabled by vue-loader or vueify).

Furthermore, I'm not sure what you expect it to highlight differently from the babel syntax when used like this, as Vue script syntax is just regular js with a couple of known lifecycles in the root exported object.

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

2 participants