mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
feat(bash): highlight arguments of trap and kill builtin commands
This commit is contained in:
parent
93537d6998
commit
f47f549f74
2 changed files with 36 additions and 12 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue