vuejs / vue-syntax-highlight

💡 Sublime Text syntax highlighting for single-file Vue components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

highlight broken on end of script.

this-user-name opened this issue · comments

This Happens in all my .vue files.
Using the last version of sublime text.
image
image

Can you still reproduce that with the latest version of ST and the syntax? If so then you should post the code sample that reproduces since it would be impossible to do from the image.

@rchl I just started getting a similar issue where it doesn't seem to be parsing a template tag correctly. I could make a separate issue about it, I just saw this similar issue. The script and style tags work fine still, not sure what happened. I did update Node.js, don't know if that could be related. This started happening even before I update to the latest Sublime. Any thoughts? p.s. I've got a weird color scheme, but you can see the right > is white when usually the whole thing is grey.

EDIT: I was able to install the Vuejs Complete Package and it works. Although I think I liked your highlighting scheme a little better. Cheers!

<template>
  <div :foo="supposed.to.parse.js('sort of works')"></div>
</template>

Screen Shot 2021-09-12 at 6 44 25 PM

It looks like this in the latest version of ST, syntax and Mariana theme:

Screenshot 2021-09-13 at 08 46 04

The issue for you could be with your color scheme.

Right you are, that's a bummer though, been using that scheme for like 5 years now (
But, not on you, your code is flawless. Thanks for the help!

commented

I can confirm this problem exists.

Environment:

  • Sublime Text - build 4121
  • Vue Syntax Highlight v4.0.1
  • Color Scheme: Monokai

Screenshots:

sb11

its normal until you expand the <script> tag.

sb22

commented

I've tested again with a clean ~/.config/sublime-text and only installed the Vue Syntax Highlight v4.0.1 package, now everything works fine. actually there is no problem at all, its just because of conflicting with other packages.

sb33