*highlight: One more betterment of history expansion related code

This commit is contained in:
Sebastian Gniazdowski 2016-10-25 17:32:10 +02:00
parent 2b7656552a
commit fddf05f911

View file

@ -467,7 +467,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
[[ $arg[-1] == '(' ]] && in_array_assignment=1 || (( next_word = next_word | BIT_start )) [[ $arg[-1] == '(' ]] && in_array_assignment=1 || (( next_word = next_word | BIT_start ))
elif [[ $arg[1] = $histchars[1] && -n "${arg[2]}" ]]; then elif [[ $arg[1] = $histchars[1] && -n "${arg[2]}" ]]; then
style=history-expansion style=history-expansion
elif [[ $arg[0,1] == $histchars[2,2] ]]; then elif [[ $arg[1] == $histchars[2] ]]; then
style=history-expansion style=history-expansion
elif (( arg_type == 3 )); then elif (( arg_type == 3 )); then
if (( this_word & BIT_regular )); then if (( this_word & BIT_regular )); then