From 90b09f88eee44b18751e23dc27c5f615ced54ac9 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Sun, 11 Feb 2018 11:08:27 -0600 Subject: [PATCH] main: Move - to end of character class Closes #472 --- highlighters/main/main-highlighter.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index 6cf0380..b100dd9 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -835,7 +835,7 @@ _zsh_highlight_main_highlighter_highlight_argument() while [[ $arg[i+1] == [\^=~#+] ]]; do (( i += 1 )) done - if [[ $arg[i+1] == [*@#?-$!] ]]; then + if [[ $arg[i+1] == [*@#?$!-] ]]; then (( i += 1 )) fi;; *)