mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 03:13:09 +00:00
*highlight: Variable names not from unicode characters
This commit is contained in:
parent
e920d09bee
commit
08bdd36ae9
1 changed files with 1 additions and 1 deletions
|
@ -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]}"
|
||||||
|
|
Loading…
Reference in a new issue