main: Set redirection style when recognizing the redirection

This commit is contained in:
Matthew Martin 2018-03-25 21:43:40 -05:00
parent df431eeee8
commit ae5b9b2dc9

View File

@ -569,6 +569,7 @@ _zsh_highlight_main_highlighter_highlight_list()
already_added=1
else
in_redirection=2
style=redirection
fi
fi
@ -751,8 +752,6 @@ _zsh_highlight_main_highlighter_highlight_list()
else
style=unknown-token
fi
elif (( in_redirection == 2 )); then
style=redirection
elif [[ $arg[1,2] == '((' ]]; then
# Arithmetic evaluation.
#
@ -841,8 +840,6 @@ _zsh_highlight_main_highlighter_highlight_list()
else
style=unknown-token
fi
elif (( in_redirection == 2 )); then
style=redirection
else
_zsh_highlight_main_highlighter_highlight_argument 1
already_added=1