feat(bash): highlight arguments of trap and kill builtin commands

This commit is contained in:
Omar Valdez 2025-12-08 01:09:27 -08:00 committed by Christian Clason
parent 93537d6998
commit f47f549f74
2 changed files with 36 additions and 12 deletions

View file

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