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
|
already_added=1
|
||||||
else
|
else
|
||||||
in_redirection=2
|
in_redirection=2
|
||||||
|
style=redirection
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -751,8 +752,6 @@ _zsh_highlight_main_highlighter_highlight_list()
|
|||||||
else
|
else
|
||||||
style=unknown-token
|
style=unknown-token
|
||||||
fi
|
fi
|
||||||
elif (( in_redirection == 2 )); then
|
|
||||||
style=redirection
|
|
||||||
elif [[ $arg[1,2] == '((' ]]; then
|
elif [[ $arg[1,2] == '((' ]]; then
|
||||||
# Arithmetic evaluation.
|
# Arithmetic evaluation.
|
||||||
#
|
#
|
||||||
@ -841,8 +840,6 @@ _zsh_highlight_main_highlighter_highlight_list()
|
|||||||
else
|
else
|
||||||
style=unknown-token
|
style=unknown-token
|
||||||
fi
|
fi
|
||||||
elif (( in_redirection == 2 )); then
|
|
||||||
style=redirection
|
|
||||||
else
|
else
|
||||||
_zsh_highlight_main_highlighter_highlight_argument 1
|
_zsh_highlight_main_highlighter_highlight_argument 1
|
||||||
already_added=1
|
already_added=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user