From 026314f2a9e6ed09b570f22c8abab883975228a5 Mon Sep 17 00:00:00 2001 From: David Hotham Date: Sat, 19 Dec 2020 20:31:55 +0000 Subject: fixes to bash highlighting --- queries/bash/highlights.scm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'queries/bash') diff --git a/queries/bash/highlights.scm b/queries/bash/highlights.scm index c49aed84f..943c23dfb 100644 --- a/queries/bash/highlights.scm +++ b/queries/bash/highlights.scm @@ -70,13 +70,13 @@ (special_variable_name) @constant ((word) @constant.builtin - (#vim-match? @constant.builtin "SIG(INT|TERM|QUIT|TIN|TOU|STP|HUP)")) + (#match? @constant.builtin "^SIG(INT|TERM|QUIT|TIN|TOU|STP|HUP)$")) ((word) @boolean - (#vim-match? @boolean "true|false")) + (#match? @boolean "^(true|false)$")) ((word) @number - (#vim-match? @number "^\d*$")) + (#match? @number "^[0-9]+$")) (comment) @comment (test_operator) @string @@ -96,11 +96,13 @@ (command argument: [ (word) @parameter - ((word) @number - (#vim-match? @number "^\d*$")) (concatenation (word) @parameter) ]) +(command + argument: ((word) @number + (#match? @number "^[0-9]+$"))) + (file_redirect descriptor: (file_descriptor) @operator destination: (word) @parameter) @@ -115,5 +117,3 @@ (case_item value: (word) @parameter) - -(concatenation (word) @parameter) -- cgit v1.2.3-70-g09d2