main: Fix highlighting of the ! precommand after array assignments. Add tests.

This commit is contained in:
Daniel Shahaf
2018-10-23 16:31:39 +00:00
parent 298ef6a2fa
commit 6cf522b7b3
3 changed files with 79 additions and 1 deletions

View File

@@ -841,7 +841,7 @@ _zsh_highlight_main_highlighter_highlight_list()
if $in_array_assignment; then
style=assign
in_array_assignment=false
next_word+=':start::start_of_pipeline:'
next_word+=':start:'
elif (( in_redirection )); then
style=unknown-token
else