diff options
| author | Steven Sojka <steelsojka@gmail.com> | 2020-08-16 11:24:10 -0500 |
|---|---|---|
| committer | Kiyan Yazdani <yazdani.kiyan@protonmail.com> | 2020-08-16 18:31:56 +0200 |
| commit | ce43dbf54cdc017e6885381f38ea056f78c4e55b (patch) | |
| tree | 27a4e0475002d2e3845e942cab8d57aeea679bff /queries/bash | |
| parent | Merge pull request #296 from steelsojka/feat-is-predicate (diff) | |
| download | nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.gz nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.bz2 nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.lz nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.xz nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.zst nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.zip | |
fix(queries): use vim-match for non lua regexes
Diffstat (limited to 'queries/bash')
| -rw-r--r-- | queries/bash/highlights.scm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/queries/bash/highlights.scm b/queries/bash/highlights.scm index c0ec8d698..80dbf45db 100644 --- a/queries/bash/highlights.scm +++ b/queries/bash/highlights.scm @@ -26,7 +26,7 @@ ] @operator [ - (string) + (string) (raw_string) (heredoc_body) ] @string @@ -58,18 +58,18 @@ ] @keyword [ - (special_variable_name) + (special_variable_name) ("$" (special_variable_name)) ] @constant ((word) @constant - (#match? @constant "SIG(INT|TERM|QUIT|TIN|TOU|STP|HUP)")) + (#vim-match? @constant "SIG(INT|TERM|QUIT|TIN|TOU|STP|HUP)")) ((word) @boolean - (#match? @boolean "true|false")) + (#vim-match? @boolean "true|false")) ((word) @number - (#match? @number "^\d*$")) + (#vim-match? @number "^\d*$")) (comment) @comment (test_operator) @string. @@ -83,11 +83,11 @@ (command_name (word)) @function -(command +(command argument: [ (word) @parameter ((word) @number - (#match? @number "^\d*$")) + (#vim-match? @number "^\d*$")) (concatenation (word) @parameter) ]) @@ -98,12 +98,12 @@ ("$" (variable_name)) @identifier -(expansion +(expansion [ "${" "}" ] @punctuation.bracket) (variable_name) @identifier -(case_item +(case_item value: (word) @parameter) (concatenation (word) @parameter) |
