mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-01-30 09:47:13 +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
|
||||
this_word=$next_word
|
||||
next_word=':regular:'
|
||||
else
|
||||
elif (( !in_param )); then
|
||||
# Stall $next_word.
|
||||
(( --in_redirection ))
|
||||
fi
|
||||
|
@ -35,6 +35,6 @@ BUFFER=$'<$fn cat'
|
||||
|
||||
expected_region_highlight=(
|
||||
'1 1 redirection' # <
|
||||
'2 4 path "issue #712"' # $fn
|
||||
'6 8 command "issue #712"' # cat
|
||||
'2 4 path' # $fn
|
||||
'6 8 command' # cat
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user