-which.ch: Support here-string

This commit is contained in:
Sebastian Gniazdowski 2019-12-30 03:33:22 +01:00
parent 8acefd6ae2
commit f3caac4506

View file

@ -40,6 +40,10 @@ local -a __results
# "starts new command", if so pass-through chroma ends
[[ "$__arg_type" = 3 ]] && return 2
if (( in_redirection > 0 || this_word & 128 )) || [[ $__wrd == "<<<" ]]; then
return 1
fi
if [[ "$__wrd" = -* ]]; then
# Detected option, add style for it.
[[ "$__wrd" = --* ]] && __style=${FAST_THEME_NAME}double-hyphen-option || \