diff options
| author | Omar Valdez <omarantoniovaldezf2@gmail.com> | 2025-12-08 01:09:27 -0800 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-12-08 14:47:59 +0100 |
| commit | f47f549f74cea5d5f25a5205c9e127cd882f1d20 (patch) | |
| tree | 0128f2d887021150e43c6c9be43153fbaf20b543 /runtime/queries/bash/injections.scm | |
| parent | feat(bash): remove unnecessary captures (diff) | |
| download | nvim-treesitter-f47f549f74cea5d5f25a5205c9e127cd882f1d20.tar nvim-treesitter-f47f549f74cea5d5f25a5205c9e127cd882f1d20.tar.gz nvim-treesitter-f47f549f74cea5d5f25a5205c9e127cd882f1d20.tar.bz2 nvim-treesitter-f47f549f74cea5d5f25a5205c9e127cd882f1d20.tar.lz nvim-treesitter-f47f549f74cea5d5f25a5205c9e127cd882f1d20.tar.xz nvim-treesitter-f47f549f74cea5d5f25a5205c9e127cd882f1d20.tar.zst nvim-treesitter-f47f549f74cea5d5f25a5205c9e127cd882f1d20.zip | |
feat(bash): highlight arguments of trap and kill builtin commands
Diffstat (limited to 'runtime/queries/bash/injections.scm')
| -rw-r--r-- | runtime/queries/bash/injections.scm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/queries/bash/injections.scm b/runtime/queries/bash/injections.scm index e1095773b..5b7e06bac 100644 --- a/runtime/queries/bash/injections.scm +++ b/runtime/queries/bash/injections.scm @@ -76,3 +76,15 @@ (#offset! @injection.content 0 1 0 -1) (#set! injection.include-children) (#set! injection.language "readline")) + +((command + name: (command_name) @_command + . + argument: [ + (string) + (raw_string) + ] @injection.content) + (#eq? @_command "trap") + (#offset! @injection.content 0 1 0 -1) + (#set! injection.include-children) + (#set! injection.self)) |
