mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-21 19:03:11 +00:00
*highlighting: In-string ${(...)...} flags – two left characters # and %
This commit is contained in:
parent
ecc4a34a7e
commit
8c33857c56
1 changed files with 1 additions and 1 deletions
|
@ -689,7 +689,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
|
|||
if [[ ${arg:$i} = (#b)([[:alpha:]_][[:alnum:]_]#|[[:digit:]]##)* ]] ; then
|
||||
(( k += ${#match[1]} )) # highlight the parameter name
|
||||
(( i += ${#match[1]} )) # skip past it
|
||||
elif [[ ${arg:$i} = (#b)([{](\([a-zA-Z0@]##\))(#c0,1)([[:alpha:]_][[:alnum:]_]#|[[:digit:]]##)[}])* ]] ; then
|
||||
elif [[ ${arg:$i} = (#b)([{](\([a-zA-Z0@%#]##\))(#c0,1)([[:alpha:]_][[:alnum:]_]#|[[:digit:]]##)[}])* ]] ; then
|
||||
(( k += ${#match[1]} )) # highlight the parameter name and braces
|
||||
(( i += ${#match[1]} )) # skip past it
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue