Don't parse first word of array assignment as command

Fixes zsh-users/zsh-syntax-highlighting#178
This commit is contained in:
Daniel Shahaf
2015-08-28 09:44:14 +00:00
parent 3dc5741900
commit b9b67b9f78
2 changed files with 7 additions and 2 deletions

View File

@@ -28,8 +28,9 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
BUFFER='A=1'
BUFFER='A=1 b=("foo" bar)'
expected_region_highlight=(
"1 3 $ZSH_HIGHLIGHT_STYLES[assign]" # A=1
"8 12 $ZSH_HIGHLIGHT_STYLES[double-quoted-argument]" # "foo"
)