mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-02-06 09:55:31 +08:00
'main': Don't progress the $in_redirection staller while $in_param.
Fixes #712.
This commit is contained in:
parent
792c065acb
commit
6fd92e1bbd
@ -617,7 +617,7 @@ _zsh_highlight_main_highlighter_highlight_list()
|
|||||||
if (( in_redirection == 0 )); then
|
if (( in_redirection == 0 )); then
|
||||||
this_word=$next_word
|
this_word=$next_word
|
||||||
next_word=':regular:'
|
next_word=':regular:'
|
||||||
else
|
elif (( !in_param )); then
|
||||||
# Stall $next_word.
|
# Stall $next_word.
|
||||||
(( --in_redirection ))
|
(( --in_redirection ))
|
||||||
fi
|
fi
|
||||||
|
@ -35,6 +35,6 @@ BUFFER=$'<$fn cat'
|
|||||||
|
|
||||||
expected_region_highlight=(
|
expected_region_highlight=(
|
||||||
'1 1 redirection' # <
|
'1 1 redirection' # <
|
||||||
'2 4 path "issue #712"' # $fn
|
'2 4 path' # $fn
|
||||||
'6 8 command "issue #712"' # cat
|
'6 8 command' # cat
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user