Highlight array appends: foo+=(bar baz).

Fixes zsh-users/zsh-syntax-highlighting#181.
This commit is contained in:
Daniel Shahaf
2015-09-05 09:38:02 +00:00
parent 13a8db1d71
commit 7f41967a17
2 changed files with 36 additions and 1 deletions

View File

@@ -218,7 +218,7 @@ _zsh_highlight_main_highlighter()
_zsh_highlight_main_highlighter_check_assign()
{
setopt localoptions extended_glob
[[ $arg == [[:alpha:]_][[:alnum:]_]#(|\[*\])=* ]]
[[ $arg == [[:alpha:]_][[:alnum:]_]#(|\[*\])(|[+])=* ]]
}
# Check if the argument is a path.