mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
dollar-double-quoted-argument: Handle «"foo$"» correctly.
This commit is contained in:
parent
b0cc02ed86
commit
66eb801358
2 changed files with 7 additions and 4 deletions
|
|
@ -272,6 +272,8 @@ _zsh_highlight_main_highlighter_highlight_string()
|
|||
if [[ ${arg:$i} =~ ^([A-Za-z_][A-Za-z0-9_]*|[0-9]+) ]] ; then
|
||||
(( k += $#MATCH )) # highlight the parameter name
|
||||
(( i += $#MATCH )) # skip past it
|
||||
else
|
||||
continue
|
||||
fi
|
||||
;;
|
||||
"\\") style=$ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue