aboutsummaryrefslogtreecommitdiffstats
path: root/queries/html
diff options
context:
space:
mode:
Diffstat (limited to 'queries/html')
-rw-r--r--queries/html/highlights.scm6
-rw-r--r--queries/html/injections.scm2
2 files changed, 4 insertions, 4 deletions
diff --git a/queries/html/highlights.scm b/queries/html/highlights.scm
index c7be21232..a30de6750 100644
--- a/queries/html/highlights.scm
+++ b/queries/html/highlights.scm
@@ -19,18 +19,18 @@
(#match? @_tag "^(s|del)$"))
((element (start_tag (tag_name) @_tag) (text) @text.underline)
- (#match? @_tag "^u$"))
+ (#eq? @_tag "u"))
((element (start_tag (tag_name) @_tag) (text) @text.literal)
(#match? @_tag "^(code|kbd)$"))
((element (start_tag (tag_name) @_tag) (text) @text.uri)
- (#match? @_tag "^a$"))
+ (#eq? @_tag "a"))
((attribute
(attribute_name) @_attr
(quoted_attribute_value (attribute_value) @text.uri))
- (#match? @_attr "^href$"))
+ (#eq? @_attr "href"))
"=" @operator
diff --git a/queries/html/injections.scm b/queries/html/injections.scm
index 742c92d98..01bc1a59c 100644
--- a/queries/html/injections.scm
+++ b/queries/html/injections.scm
@@ -4,7 +4,7 @@
((attribute
(attribute_name) @_attr
(quoted_attribute_value (attribute_value) @css))
- (#match? @_attr "^style$"))
+ (#eq? @_attr "style"))
((script_element
(raw_text) @javascript))