From b74bd776f20304438d03e26afc24f3ad5214bea4 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Sun, 18 Sep 2022 20:39:53 +0300 Subject: [PATCH] highlights(bash): add all signal names --- queries/bash/highlights.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/queries/bash/highlights.scm b/queries/bash/highlights.scm index 961444a45..e4ea63ed9 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)$"))