aboutsummaryrefslogtreecommitdiffstats
path: root/queries/html
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-02-10 22:18:00 -0500
committerThomas Vigouroux <tomvig38@gmail.com>2021-02-11 07:42:19 +0100
commit76a7000384aec0a94c6a4b0031a1bde0909b7ac4 (patch)
tree0c976c6ae9c6f88a2a47f81f8aaf1fc8cb0115e0 /queries/html
parentHTML: improve highlights & injections (diff)
downloadnvim-treesitter-76a7000384aec0a94c6a4b0031a1bde0909b7ac4.tar
nvim-treesitter-76a7000384aec0a94c6a4b0031a1bde0909b7ac4.tar.gz
nvim-treesitter-76a7000384aec0a94c6a4b0031a1bde0909b7ac4.tar.bz2
nvim-treesitter-76a7000384aec0a94c6a4b0031a1bde0909b7ac4.tar.lz
nvim-treesitter-76a7000384aec0a94c6a4b0031a1bde0909b7ac4.tar.xz
nvim-treesitter-76a7000384aec0a94c6a4b0031a1bde0909b7ac4.tar.zst
nvim-treesitter-76a7000384aec0a94c6a4b0031a1bde0909b7ac4.zip
Use eq?
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))