mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
Merge pull request #131 from MarkLodato/array-assignments
Properly highlight array assignments
This commit is contained in:
commit
8ac964186d
@ -153,7 +153,7 @@ _zsh_highlight_main_highlighter()
|
||||
_zsh_highlight_main_highlighter_check_assign()
|
||||
{
|
||||
setopt localoptions extended_glob
|
||||
[[ ${(Q)arg} == [[:alpha:]_]([[:alnum:]_])#=* ]]
|
||||
[[ $arg == [[:alpha:]_][[:alnum:]_]#(|\[*\])=* ]]
|
||||
}
|
||||
|
||||
# Check if the argument is a path.
|
||||
|
Loading…
Reference in New Issue
Block a user