From e4fd270cb58f4ad7b12db77a5e3a0691d54d8a54 Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Sat, 25 Mar 2017 18:10:24 +0100 Subject: [PATCH] *highlight: ## -> # in previous patch --- hsmw-highlight | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsmw-highlight b/hsmw-highlight index 8c9c077..e69146a 100644 --- a/hsmw-highlight +++ b/hsmw-highlight @@ -628,7 +628,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=( mybuf="$arg" idx=start_pos - while [[ "$mybuf" = (#b)[^\$\\]#((\$(#B)([a-zA-Z_:][a-zA-Z0-9_:]##|[0-9]##)(#b)(\[[^\]]#\])(#c0,1))|(\$[{](\([a-zA-Z0@%#]##\))(#c0,1)[a-zA-Z0-9_:#]##(\[[^\]]#\])(#c0,1)[}])|[\\][\'\"\$]|[\\](*))(*) ]]; do + while [[ "$mybuf" = (#b)[^\$\\]#((\$(#B)([a-zA-Z_:][a-zA-Z0-9_:]#|[0-9]##)(#b)(\[[^\]]#\])(#c0,1))|(\$[{](\([a-zA-Z0@%#]##\))(#c0,1)[a-zA-Z0-9_:#]##(\[[^\]]#\])(#c0,1)[}])|[\\][\'\"\$]|[\\](*))(*) ]]; do [[ -n "${match[7]}" ]] && { # Skip following char – it is quoted. Choice is # made to not highlight such quoting