From ce43dbf54cdc017e6885381f38ea056f78c4e55b Mon Sep 17 00:00:00 2001 From: Steven Sojka Date: Sun, 16 Aug 2020 11:24:10 -0500 Subject: fix(queries): use vim-match for non lua regexes --- queries/bash/highlights.scm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'queries/bash') 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) -- cgit v1.2.3-70-g09d2