mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -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
|
|
@ -90,7 +90,9 @@
|
|||
(command_name (word) @function)
|
||||
|
||||
((command_name (word) @function.builtin)
|
||||
(#match? @function.builtin "^(cd|echo|eval|exit|getopts|pushd|popd|return|set|shift)$"))
|
||||
(#any-of? @function.builtin
|
||||
"cd" "echo" "eval" "exit" "getopts"
|
||||
"pushd" "popd" "return" "set" "shift"))
|
||||
|
||||
(command
|
||||
argument: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue