From b6e0aeb380b313ee0a6745a4ba4bc7db5cc2eec0 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Mon, 1 Oct 2018 12:23:47 -0400 Subject: [PATCH] main: Use unknown-token when the token type is unknown --- 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 b32d415..8b9a2aa 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -544,7 +544,7 @@ _zsh_highlight_main_highlighter_highlight_list() if (( insane_alias )); then style=unknown-token # Calling 'type' again; since __type memoizes the answer, this call is just a hash lookup. - elif _zsh_highlight_main__type "$arg" && [[ $REPLY == 'none' ]]; then + elif ! _zsh_highlight_main__type "$arg" || [[ $REPLY == 'none' ]]; then style=unknown-token else # The common case.