'main': Don't highlight bare '$foo' as a filename, as it's a parameter expansion.

Fixes #474.
This commit is contained in:
Daniel Shahaf
2018-01-20 15:40:11 +00:00
committed by Daniel Shahaf
parent 382be9096d
commit 03692831ad
2 changed files with 3 additions and 1 deletions

View File

@@ -823,7 +823,9 @@ _zsh_highlight_main_highlighter_highlight_argument()
highlights+=($reply)
;;
'$')
path_eligible=0
if [[ $arg[i+1] == "'" ]]; then
path_eligible=1
_zsh_highlight_main_highlighter_highlight_dollar_quote $i
(( i = REPLY ))
highlights+=($reply)