nvim-treesitter/queries/vue/highlights.scm
Hugo Osvaldo Barrera ff7ec08a1e Add support for Vue files
I haven't included parsing the `style` tag, since the only applicable
queries we have are CSS (which actually works fine for SCSS too).
2021-02-17 14:43:32 +01:00

38 lines
567 B
Scheme

[
(component)
(template_element)
(start_tag)
(tag_name)
(directive_attribute)
(directive_dynamic_argument)
(directive_dynamic_argument_value)
(component)
(end_tag)
] @tag
(erroneous_end_tag_name) @error
(attribute_name) @property
(attribute_value) @string
(quoted_attribute_value) @string
(comment) @comment
(text) @none
(element) @string
(interpolation) @punctuation.special
(interpolation
(raw_text) @none)
[
(directive_modifier)
(directive_name)
(directive_argument)
] @method
"=" @operator
[
"<"
">"
"</"
"/>"
] @tag.delimiter