mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 00:40:06 -04:00
Use #any-of? instead of #match? where posible
This commit is contained in:
parent
55c5620aa3
commit
c699cc2e47
9 changed files with 31 additions and 15 deletions
|
|
@ -134,7 +134,7 @@
|
|||
"type"
|
||||
] @keyword
|
||||
|
||||
((identifier) @keyword (#match? @keyword "^(global|local)$"))
|
||||
((identifier) @keyword (#any-of? @keyword "global" "local"))
|
||||
|
||||
(compound_expression
|
||||
["begin" "end"] @keyword)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue