diff options
| author | David Hotham <david.hotham@metaswitch.com> | 2020-12-24 19:48:02 +0000 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-12-25 15:56:06 +0100 |
| commit | 35dec1ceeb9996aa3acb24b35305425daf368d75 (patch) | |
| tree | 5ef9cbdbd6636b5fdf92ebecc8fa85b406c2359c /queries/bash | |
| parent | match test for regex (diff) | |
| download | nvim-treesitter-35dec1ceeb9996aa3acb24b35305425daf368d75.tar nvim-treesitter-35dec1ceeb9996aa3acb24b35305425daf368d75.tar.gz nvim-treesitter-35dec1ceeb9996aa3acb24b35305425daf368d75.tar.bz2 nvim-treesitter-35dec1ceeb9996aa3acb24b35305425daf368d75.tar.lz nvim-treesitter-35dec1ceeb9996aa3acb24b35305425daf368d75.tar.xz nvim-treesitter-35dec1ceeb9996aa3acb24b35305425daf368d75.tar.zst nvim-treesitter-35dec1ceeb9996aa3acb24b35305425daf368d75.zip | |
remove duplication of query for number
Diffstat (limited to 'queries/bash')
| -rw-r--r-- | queries/bash/highlights.scm | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/queries/bash/highlights.scm b/queries/bash/highlights.scm index 709ccd6ac..7d83af032 100644 --- a/queries/bash/highlights.scm +++ b/queries/bash/highlights.scm @@ -76,9 +76,6 @@ ((word) @boolean (#match? @boolean "^(true|false)$")) -((word) @number - (#match? @number "^[0-9]+$")) - (comment) @comment (test_operator) @string @@ -100,9 +97,8 @@ (concatenation (word) @parameter) ]) -(command - argument: ((word) @number - (#match? @number "^[0-9]+$"))) +((word) @number + (#match? @number "^[0-9]+$")) (file_redirect descriptor: (file_descriptor) @operator |
