mirror of
https://github.com/zsh-users/zsh-syntax-highlighting
synced 2024-12-11 14:05:37 +00:00
main: Use unknown-token when the token type is unknown
This commit is contained in:
parent
4748f9bd3d
commit
b6e0aeb380
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user