add @tag.attribute for html like attributes

This commit is contained in:
lmlorca 2021-07-13 20:21:47 -04:00 committed by Stephan Seitz
parent 29113e6892
commit fb5d6e04a8
5 changed files with 8 additions and 1 deletions

View file

@ -1,7 +1,7 @@
(tag_name) @tag
(erroneous_end_tag_name) @error
(comment) @comment
(attribute_name) @property
(attribute_name) @tag.attribute
(attribute_value) @string
(quoted_attribute_value) @string
(text) @none

View file

@ -4,6 +4,7 @@
close_tag: (jsx_closing_element ["<" "/" ">"] @tag.delimiter))
(jsx_self_closing_element ["/" ">" "<"] @tag.delimiter)
(jsx_fragment [">" "<" "/"] @tag.delimiter)
(jsx_attribute (property_identifier) @tag.attribute)
(jsx_opening_element
name: (identifier) @tag)