mirror of
https://github.com/zsh-users/zsh-syntax-highlighting
synced 2024-12-11 22:15:23 +00:00
main: Set redirection style when recognizing the redirection
This commit is contained in:
parent
df431eeee8
commit
ae5b9b2dc9
@ -569,6 +569,7 @@ _zsh_highlight_main_highlighter_highlight_list()
|
||||
already_added=1
|
||||
else
|
||||
in_redirection=2
|
||||
style=redirection
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -751,8 +752,6 @@ _zsh_highlight_main_highlighter_highlight_list()
|
||||
else
|
||||
style=unknown-token
|
||||
fi
|
||||
elif (( in_redirection == 2 )); then
|
||||
style=redirection
|
||||
elif [[ $arg[1,2] == '((' ]]; then
|
||||
# Arithmetic evaluation.
|
||||
#
|
||||
@ -841,8 +840,6 @@ _zsh_highlight_main_highlighter_highlight_list()
|
||||
else
|
||||
style=unknown-token
|
||||
fi
|
||||
elif (( in_redirection == 2 )); then
|
||||
style=redirection
|
||||
else
|
||||
_zsh_highlight_main_highlighter_highlight_argument 1
|
||||
already_added=1
|
||||
|
Loading…
Reference in New Issue
Block a user