*highlight: Variable names not from unicode characters (2)

This commit is contained in:
Sebastian Gniazdowski 2016-10-17 06:33:42 +02:00
parent 08bdd36ae9
commit d2fbc7eb37

View file

@ -394,7 +394,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
# parameters that refer to commands, functions, and builtins. # parameters that refer to commands, functions, and builtins.
local MATCH; integer MBEGIN MEND local MATCH; integer MBEGIN MEND
if [[ $REPLY == none ]] && (( ${+parameters} )) && if [[ $REPLY == none ]] && (( ${+parameters} )) &&
[[ ${arg[1]} == \$ ]] && [[ ${arg:1} = (#m)([[:alpha:]_][[:alnum:]_]#|[[:digit:]]##) ]] && [[ ${arg[1]} == \$ ]] && [[ ${arg:1} = (#m)([a-zA-Z_][a-zA-Z0-9_]#|[0-9]##) ]] &&
(( ${+parameters[${MATCH}]} )) (( ${+parameters[${MATCH}]} ))
then then
-hsmw-highlight-main-type ${(P)MATCH} -hsmw-highlight-main-type ${(P)MATCH}