aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/html_tags/highlights.scm2
-rw-r--r--queries/jsx/highlights.scm1
2 files changed, 2 insertions, 1 deletions
diff --git a/queries/html_tags/highlights.scm b/queries/html_tags/highlights.scm
index f92881d27..09e7b3ddf 100644
--- a/queries/html_tags/highlights.scm
+++ b/queries/html_tags/highlights.scm
@@ -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
diff --git a/queries/jsx/highlights.scm b/queries/jsx/highlights.scm
index 78c251708..8904c86c4 100644
--- a/queries/jsx/highlights.scm
+++ b/queries/jsx/highlights.scm
@@ -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)