We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5b6bb2 commit 9ba6860Copy full SHA for 9ba6860
highlighters/main/main-highlighter.zsh
@@ -750,7 +750,8 @@ _zsh_highlight_main_highlighter_highlight_list()
750
fi
751
752
# Expand parameters.
753
- if (( ! in_param )) && _zsh_highlight_main_highlighter__try_expand_parameter "$arg"; then
+ if (( ! in_param )) && [[ $arg == \$* ]] &&
754
+ _zsh_highlight_main_highlighter__try_expand_parameter "$arg"; then
755
# That's not entirely correct --- if the parameter's value happens to be a reserved
756
# word, the parameter expansion will be highlighted as a reserved word --- but that
757
# incorrectness is outweighed by the usability improvement of permitting the use of
0 commit comments