add highlight for unset command

This commit is contained in:
Uy Ha 2022-12-07 22:34:28 +01:00 committed by Stephan Seitz
parent d1f8e102e5
commit 15ee2cb240

View file

@ -107,6 +107,19 @@
) .
)
(normal_command
(identifier) @function.builtin
(#match? @function.builtin "\\c^(unset)$")
. (argument) @variable
)
(normal_command
(identifier) @function.builtin
(#match? @function.builtin "\\c^(unset)$")
. (argument)
(argument) @storageclass
(#any-of? @storageclass "CACHE" "PARENT_SCOPE")
)
((argument) @boolean
(#match? @boolean "\\c^(1|on|yes|true|y|0|off|no|false|n|ignore|notfound|.*-notfound)$")
)