mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Highlight array appends: foo+=(bar baz).
Fixes zsh-users/zsh-syntax-highlighting#181.
This commit is contained in:
parent
13a8db1d71
commit
7f41967a17
2 changed files with 36 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue