mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
main: Do not highlight empty region between two adjacent $()
Should fix #624
This commit is contained in:
parent
ab4b6f5823
commit
83249e1b23
2 changed files with 46 additions and 1 deletions
|
|
@ -1238,7 +1238,7 @@ _zsh_highlight_main_highlighter_highlight_double_quote()
|
|||
saved_reply=($reply)
|
||||
reply=()
|
||||
for 1 2 in $breaks; do
|
||||
reply+=($1 $2 $style)
|
||||
(( $1 != $2 )) && reply+=($1 $2 $style)
|
||||
done
|
||||
reply+=($saved_reply)
|
||||
REPLY=$i
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue