diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2022-09-18 20:39:53 +0300 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-10-15 08:12:55 -0700 |
| commit | b74bd776f20304438d03e26afc24f3ad5214bea4 (patch) | |
| tree | bb2262ce8f413938b952d50e1ea4b57c9fbc41e4 /queries/bash | |
| parent | highlights(kotlin): add companion keyword (diff) | |
| download | nvim-treesitter-b74bd776f20304438d03e26afc24f3ad5214bea4.tar nvim-treesitter-b74bd776f20304438d03e26afc24f3ad5214bea4.tar.gz nvim-treesitter-b74bd776f20304438d03e26afc24f3ad5214bea4.tar.bz2 nvim-treesitter-b74bd776f20304438d03e26afc24f3ad5214bea4.tar.lz nvim-treesitter-b74bd776f20304438d03e26afc24f3ad5214bea4.tar.xz nvim-treesitter-b74bd776f20304438d03e26afc24f3ad5214bea4.tar.zst nvim-treesitter-b74bd776f20304438d03e26afc24f3ad5214bea4.zip | |
highlights(bash): add all signal names
Diffstat (limited to 'queries/bash')
| -rw-r--r-- | queries/bash/highlights.scm | 4 |
1 files changed, 3 insertions, 1 deletions
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)$")) |
