aboutsummaryrefslogtreecommitdiffstats
path: root/queries/comment
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@proton.me>2023-06-16 14:11:10 -0500
committerChristian Clason <c.clason@uni-graz.at>2023-06-16 21:21:40 +0200
commit1b9f704eb8664508749a1164d4086e47f9afa77f (patch)
tree07c3812c711a18ec14904e3f15d41e2c20a93c93 /queries/comment
parentUpdate parsers: scala (#4953) (diff)
downloadnvim-treesitter-1b9f704eb8664508749a1164d4086e47f9afa77f.tar
nvim-treesitter-1b9f704eb8664508749a1164d4086e47f9afa77f.tar.gz
nvim-treesitter-1b9f704eb8664508749a1164d4086e47f9afa77f.tar.bz2
nvim-treesitter-1b9f704eb8664508749a1164d4086e47f9afa77f.tar.lz
nvim-treesitter-1b9f704eb8664508749a1164d4086e47f9afa77f.tar.xz
nvim-treesitter-1b9f704eb8664508749a1164d4086e47f9afa77f.tar.zst
nvim-treesitter-1b9f704eb8664508749a1164d4086e47f9afa77f.zip
fix(comment): use #any-of? predicate
Diffstat (limited to 'queries/comment')
-rw-r--r--queries/comment/highlights.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/comment/highlights.scm b/queries/comment/highlights.scm
index c0e1df308..2f76708db 100644
--- a/queries/comment/highlights.scm
+++ b/queries/comment/highlights.scm
@@ -4,10 +4,10 @@
(name) @text.todo @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
- (#eq? @text.todo "TODO" "WIP"))
+ (#any-of? @text.todo "TODO" "WIP"))
("text" @text.todo @nospell
- (#eq? @text.todo "TODO" "WIP"))
+ (#any-of? @text.todo "TODO" "WIP"))
((tag
(name) @text.note @nospell