aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/slim
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2025-10-29 18:51:42 -0700
committerGitHub <noreply@github.com>2025-10-30 10:51:42 +0900
commit2c30e515ebe79037ab8d15f7e59c0e2690f50626 (patch)
tree9adff00656d8edd1329c841545e8b32d340f647f /runtime/queries/slim
parentfeat(diff): update parser after move (diff)
downloadnvim-treesitter-2c30e515ebe79037ab8d15f7e59c0e2690f50626.tar
nvim-treesitter-2c30e515ebe79037ab8d15f7e59c0e2690f50626.tar.gz
nvim-treesitter-2c30e515ebe79037ab8d15f7e59c0e2690f50626.tar.bz2
nvim-treesitter-2c30e515ebe79037ab8d15f7e59c0e2690f50626.tar.lz
nvim-treesitter-2c30e515ebe79037ab8d15f7e59c0e2690f50626.tar.xz
nvim-treesitter-2c30e515ebe79037ab8d15f7e59c0e2690f50626.tar.zst
nvim-treesitter-2c30e515ebe79037ab8d15f7e59c0e2690f50626.zip
fix: prefer `#eq?` for checking equality with one string (#8246)
Diffstat (limited to 'runtime/queries/slim')
-rw-r--r--runtime/queries/slim/highlights.scm16
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/queries/slim/highlights.scm b/runtime/queries/slim/highlights.scm
index e219932f6..f14ea864f 100644
--- a/runtime/queries/slim/highlights.scm
+++ b/runtime/queries/slim/highlights.scm
@@ -54,29 +54,29 @@
(#any-of? @markup.italic "i" "em"))
((tag_name) @markup.link
- (#any-of? @markup.link "a"))
+ (#eq? @markup.link "a"))
; Headings
((tag_name) @markup.heading
- (#any-of? @markup.heading "header"))
+ (#eq? @markup.heading "header"))
((tag_name) @markup.heading.1
- (#any-of? @markup.heading.1 "h1"))
+ (#eq? @markup.heading.1 "h1"))
((tag_name) @markup.heading.2
- (#any-of? @markup.heading.2 "h2"))
+ (#eq? @markup.heading.2 "h2"))
((tag_name) @markup.heading.3
- (#any-of? @markup.heading.3 "h3"))
+ (#eq? @markup.heading.3 "h3"))
((tag_name) @markup.heading.4
- (#any-of? @markup.heading.4 "h4"))
+ (#eq? @markup.heading.4 "h4"))
((tag_name) @markup.heading.5
- (#any-of? @markup.heading.5 "h5"))
+ (#eq? @markup.heading.5 "h5"))
((tag_name) @markup.heading.6
- (#any-of? @markup.heading.6 "h6"))
+ (#eq? @markup.heading.6 "h6"))
((tag_name) @markup.list
(#any-of? @markup.list "ul" "ol" "li" "dl" "dt" "dd"))