summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--queries/bash/highlights.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/queries/bash/highlights.scm b/queries/bash/highlights.scm
index 961444a4..e4ea63ed 100644
--- a/queries/bash/highlights.scm
+++ b/queries/bash/highlights.scm
@@ -43,6 +43,7 @@
[
(string)
(raw_string)
+ (ansii_c_string)
(heredoc_body)
] @string @spell
@@ -78,8 +79,9 @@
(special_variable_name) @constant
+; trap -l
((word) @constant.builtin
- (#match? @constant.builtin "^SIG(INT|TERM|QUIT|TIN|TOU|STP|HUP)$"))
+ (#match? @constant.builtin "^SIG(HUP|INT|QUIT|ILL|TRAP|ABRT|BUS|FPE|KILL|USR[12]|SEGV|PIPE|ALRM|TERM|STKFLT|CHLD|CONT|STOP|TSTP|TT(IN|OU)|URG|XCPU|XFSZ|VTALRM|PROF|WINCH|IO|PWR|SYS|RTMIN([+]([1-9]|1[0-5]))?|RTMAX(-([1-9]|1[0-4]))?)$"))
((word) @boolean
(#match? @boolean "^(true|false)$"))