mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
feat(bash): highlight variable argument for printf -v
This commit is contained in:
committed by
Christian Clason
parent
c78594ce06
commit
652831b231
@@ -247,6 +247,17 @@
|
||||
"READLINE_ARGUMENT" "READLINE_LINE" "READLINE_MARK" "READLINE_POINT" "REPLY" "SECONDS" "SHELL"
|
||||
"SHELLOPTS" "SHLVL" "SRANDOM" "TIMEFORMAT" "TMOUT" "TMPDIR" "UID"))
|
||||
|
||||
((command
|
||||
name: (command_name
|
||||
(word) @_printf)
|
||||
.
|
||||
argument: (word) @_v
|
||||
.
|
||||
argument: (word) @variable)
|
||||
(#eq? @_printf "printf")
|
||||
(#eq? @_v "-v")
|
||||
(#lua-match? @variable "^[a-zA-Z_][a-zA-Z0-9_]*$"))
|
||||
|
||||
(case_item
|
||||
value: (word) @variable.parameter)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user