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/bash | |
| 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/bash')
| -rw-r--r-- | queries/bash/highlights.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/queries/bash/highlights.scm b/queries/bash/highlights.scm index 9b2921e66..2c23efc3f 100644 --- a/queries/bash/highlights.scm +++ b/queries/bash/highlights.scm @@ -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: [ |
