'main': Fix state check.

At this time, no user-visible consequences are known.
This commit is contained in:
Daniel Shahaf 2015-10-30 13:38:04 +00:00
parent ea5186543d
commit 17fbcad8ac

View file

@ -406,8 +406,8 @@ _zsh_highlight_main_highlighter()
next_word=':start:' next_word=':start:'
highlight_glob=true highlight_glob=true
elif elif
[[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_CONTROL_FLOW:#"$arg"} && $this_word == *':start:' ]] || [[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_CONTROL_FLOW:#"$arg"} && $this_word == *':start:'* ]] ||
[[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS:#"$arg"} && $this_word == *':start:' ]]; then [[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS:#"$arg"} && $this_word == *':start:'* ]]; then
next_word=':start:' next_word=':start:'
elif [[ $arg == "repeat" && $this_word == *':start:'* ]]; then elif [[ $arg == "repeat" && $this_word == *':start:'* ]]; then
# skip the repeat-count word # skip the repeat-count word