'main': Highlight possible history expansions in double-quoted strings.

This commit is contained in:
Daniel Shahaf
2016-11-22 07:09:29 +00:00
parent 50fbb5f76e
commit 76ea9e1df3
4 changed files with 119 additions and 0 deletions

View File

@@ -818,6 +818,13 @@ _zsh_highlight_main_highlighter_highlight_string()
continue
fi
;;
($histchars[1]) # ! - may be a history expansion
if [[ $arg[i+1] != ('='|$'\x28'|$'\x7b'|[[:blank:]]) ]]; then
style=history-expansion
else
continue
fi
;;
*) continue ;;
esac