diff options
| author | Joakker <joaquinandresleon108@gmail.com> | 2021-06-24 14:45:31 -0400 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-06-25 00:22:48 +0200 |
| commit | c699cc2e47fe302e9f414356cceb20a309be5bc6 (patch) | |
| tree | 961806f7baf8cc44432ffc813c71c5304907cb16 /queries/comment/highlights.scm | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.tar nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.tar.gz nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.tar.bz2 nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.tar.lz nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.tar.xz nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.tar.zst nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.zip | |
Use #any-of? instead of #match? where posible
Diffstat (limited to 'queries/comment/highlights.scm')
| -rw-r--r-- | queries/comment/highlights.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/queries/comment/highlights.scm b/queries/comment/highlights.scm index 88ae027db..2edfd82d1 100644 --- a/queries/comment/highlights.scm +++ b/queries/comment/highlights.scm @@ -8,16 +8,16 @@ (tag (name) @text.note (user)? @constant) ((tag ((name) @text.warning)) - (#match? @text.warning "^(TODO|HACK|WARNING)$")) + (#any-of? @text.warning "TODO" "HACK" "WARNING)$")) ("text" @text.warning - (#match? @text.warning "^(TODO|HACK|WARNING)$")) + (#any-of? @text.warning "TODO" "HACK" "WARNING")) ((tag ((name) @text.danger)) - (#match? @text.danger "^(FIXME|XXX|BUG)$")) + (#any-of? @text.danger "FIXME" "XXX" "BUG")) ("text" @text.danger - (#match? @text.danger "^(FIXME|XXX|BUG)$")) + (#any-of? @text.danger "FIXME" "XXX" "BUG")) ; Issue number (#123) ("text" @number (#match? @number "^#[0-9]+$")) |
