mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
fixup! 'main': Highlight array parameters in command position.
This commit is contained in:
parent
2580a8bd8b
commit
aa3637c9f7
@ -514,7 +514,7 @@ _zsh_highlight_highlighter_main_paint()
|
|||||||
# Set $arg.
|
# Set $arg.
|
||||||
case ${(tP)MATCH} in
|
case ${(tP)MATCH} in
|
||||||
(*array*|*assoc*)
|
(*array*|*assoc*)
|
||||||
local -a words=( ${(P)MATCH} )
|
local -a words; words=( ${(P)MATCH} )
|
||||||
arg=${words[1]}
|
arg=${words[1]}
|
||||||
;;
|
;;
|
||||||
(*)
|
(*)
|
||||||
|
Loading…
Reference in New Issue
Block a user