*highlight: Variable names not from unicode characters

This commit is contained in:
Sebastian Gniazdowski 2016-10-17 06:29:52 +02:00
parent e920d09bee
commit 08bdd36ae9

View file

@ -676,7 +676,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
local mybuf="$arg" local mybuf="$arg"
integer idx=start_pos end_idx integer idx=start_pos end_idx
while [[ "$mybuf" = (#b)[^\$\\]#((\$[[:alnum:]_]##(\[[^[:space:]]#\])(#c0,1))|(\$[{](\([a-zA-Z0@%#]##\))(#c0,1)[[:alnum:]_]##(\[[^[:space:]]#\])(#c0,1)[}])|[\\][\'\"\$]|[\\](*))(*) ]]; do while [[ "$mybuf" = (#b)[^\$\\]#((\$[a-zA-Z0-9_]##(\[[^[:space:]]#\])(#c0,1))|(\$[{](\([a-zA-Z0@%#]##\))(#c0,1)[a-zA-Z0-9_]##(\[[^[:space:]]#\])(#c0,1)[}])|[\\][\'\"\$]|[\\](*))(*) ]]; do
[[ -n "${match[7]}" ]] && { [[ -n "${match[7]}" ]] && {
idx+=${mbegin[1]} idx+=${mbegin[1]}
mybuf="${match[7]}" mybuf="${match[7]}"