fixup! 'main': Apply the parameter expansion logic regardless of the type

This commit is contained in:
Daniel Shahaf 2020-03-28 04:28:52 +00:00
commit 78f40ee2b6
2 changed files with 39 additions and 1 deletions

View file

@ -1299,7 +1299,7 @@ _zsh_highlight_main_highlighter_highlight_argument()
fi
esac
for (( ; i <= $#arg ; i += 1 )); do
for (( ; i <= $#arg && ! in_param ; i += 1 )); do
case "$arg[$i]" in
"\\") (( i += 1 )); continue;;
"'")