From 9706af4b8135d030a33ba4e9534b853dc9969327 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Sun, 11 Feb 2018 11:07:08 -0600 Subject: [PATCH] main: Simplify for next commit; no functional change --- highlighters/main/main-highlighter.zsh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index 26fcb4b..6cf0380 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -830,14 +830,12 @@ _zsh_highlight_main_highlighter_highlight_argument() _zsh_highlight_main_highlighter_highlight_dollar_quote $i (( i = REPLY )) highlights+=($reply) - elif [[ $arg[i+1] == [\^=~#+] ]]; then - while [[ $arg[i+1] == [\^=~#+] ]]; do - (( i += 1 )) - done - if [[ $arg[i+1] == [*@#?-$!] ]]; then - (( i += 1 )) - fi - elif [[ $arg[i+1] == [*@#?-$!] ]]; then + continue + fi + while [[ $arg[i+1] == [\^=~#+] ]]; do + (( i += 1 )) + done + if [[ $arg[i+1] == [*@#?-$!] ]]; then (( i += 1 )) fi;; *)