From 08bdd36ae9b7d6b912a1bbccdff0278a0f42c9c8 Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Mon, 17 Oct 2016 06:29:52 +0200 Subject: [PATCH] *highlight: Variable names not from unicode characters --- hsmw-highlight | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsmw-highlight b/hsmw-highlight index 0de1aca..0494278 100644 --- a/hsmw-highlight +++ b/hsmw-highlight @@ -676,7 +676,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES local mybuf="$arg" 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]}" ]] && { idx+=${mbegin[1]} mybuf="${match[7]}"