From 76a7000384aec0a94c6a4b0031a1bde0909b7ac4 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Wed, 10 Feb 2021 22:18:00 -0500 Subject: [PATCH] Use eq? --- queries/html/highlights.scm | 6 +++--- queries/html/injections.scm | 2 +- 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))