mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
refactor: make html-like languages inherit from single query
This commit is contained in:
parent
801adf2377
commit
5d2faa0466
7 changed files with 61 additions and 119 deletions
|
|
@ -1,22 +1,13 @@
|
|||
; inherits: html_tags
|
||||
|
||||
[
|
||||
(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
|
||||
|
|
@ -27,12 +18,3 @@
|
|||
(directive_name)
|
||||
(directive_argument)
|
||||
] @method
|
||||
|
||||
"=" @operator
|
||||
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
"</"
|
||||
"/>"
|
||||
] @tag.delimiter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue