mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-25 04:40:21 +00:00
*highlight: Variable names not from unicode characters (2)
This commit is contained in:
parent
08bdd36ae9
commit
d2fbc7eb37
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
|
|||
# parameters that refer to commands, functions, and builtins.
|
||||
local MATCH; integer MBEGIN MEND
|
||||
if [[ $REPLY == none ]] && (( ${+parameters} )) &&
|
||||
[[ ${arg[1]} == \$ ]] && [[ ${arg:1} = (#m)([[:alpha:]_][[:alnum:]_]#|[[:digit:]]##) ]] &&
|
||||
[[ ${arg[1]} == \$ ]] && [[ ${arg:1} = (#m)([a-zA-Z_][a-zA-Z0-9_]#|[0-9]##) ]] &&
|
||||
(( ${+parameters[${MATCH}]} ))
|
||||
then
|
||||
-hsmw-highlight-main-type ${(P)MATCH}
|
||||
|
|
Loading…
Reference in a new issue