From 45ac0f3e890feda68f1a62fefc1adc1908c895eb Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Fri, 28 Oct 2016 10:11:27 +0200 Subject: [PATCH] =?UTF-8?q?*highlight:=20Support=20:modifiers=20in=20varia?= =?UTF-8?q?bles,=20in=20strings=20=E2=80=93=20naive=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hsmw-highlight | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsmw-highlight b/hsmw-highlight index d18162f..7ace362 100644 --- a/hsmw-highlight +++ b/hsmw-highlight @@ -638,7 +638,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=( mybuf="$arg" idx=start_pos - while [[ "$mybuf" = (#b)[^\$\\]#((\$[a-zA-Z0-9_]##(\[[^\]]#\])(#c0,1))|(\$[{](\([a-zA-Z0@%#]##\))(#c0,1)[a-zA-Z0-9_]##(\[[^\]]#\])(#c0,1)[}])|[\\][\'\"\$]|[\\](*))(*) ]]; do + while [[ "$mybuf" = (#b)[^\$\\]#((\$[a-zA-Z0-9_:]##(\[[^\]]#\])(#c0,1))|(\$[{](\([a-zA-Z0@%#]##\))(#c0,1)[a-zA-Z0-9_:#]##(\[[^\]]#\])(#c0,1)[}])|[\\][\'\"\$]|[\\](*))(*) ]]; do [[ -n "${match[7]}" ]] && { idx+=${mbegin[1]} mybuf="${match[7]}"