mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2026-10-05 11:06:23 +00:00
main: Use unknown-token when the token type is unknown
This commit is contained in:
1 parent
4748f9bd3d
commit
b6e0aeb380
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user