mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-24 20:33:04 +00:00
*highlight: Support :modifiers in variables, in strings – naive support
This commit is contained in:
parent
619d9c7184
commit
45ac0f3e89
1 changed files with 1 additions and 1 deletions
|
@ -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]}"
|
||||
|
|
Loading…
Reference in a new issue