highlights(bash): add all signal names

This commit is contained in:
ObserverOfTime 2022-09-18 20:39:53 +03:00 committed by Stephan Seitz
parent d649756f49
commit b74bd776f2

View file

@ -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)$"))