vuejs / vue-syntax-highlight

💡 Sublime Text syntax highlighting for single-file Vue components
MIT License
1.49k stars 232 forks source link

Add scopes for directives #174

Open Qrokqt opened 5 years ago

Qrokqt commented 5 years ago

I'd like to color vue directives differently than normal attributes, but there aren't scopes to support it.

At the moment in sublime, v-on:mousedown or @mousedown will have the scopes:

text.html.vue
meta.tag.block.any.html
entity.other.attribute-name.html

while in vscode has the scopes:

source.vue
text.html.vue-html
meta.tag.any.html
meta.directive.vue
entity.other.attribute-name.html

Could we get a meta.directive.vue scope equivalent in sublime?

FichteFoll commented 1 year ago

With #216, directives have an embedded scope indicating that they use javascript for interpolation.