mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 03:13:09 +00:00
*highlight: Format if
in one line (the ${(P)MATCH} *-type code)
This commit is contained in:
parent
002e127eb2
commit
24aa777af6
1 changed files with 1 additions and 3 deletions
|
@ -396,9 +396,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
# word, the parameter expansion will be highlighted as a reserved word --- but that
|
||||
# incorrectness is outweighed by the usability improvement of permitting the use of
|
||||
# parameters that refer to commands, functions, and builtins.
|
||||
if [[ ${arg[1]} == \$ ]] && (( ${+parameters} )) && [[ ${arg:1} = (#m)([a-zA-Z_][a-zA-Z0-9_]#|[0-9]##) ]] &&
|
||||
(( ${+parameters[${MATCH}]} ))
|
||||
then
|
||||
if [[ ${arg[1]} == \$ ]] && (( ${+parameters} )) && [[ ${arg:1} = (#m)([a-zA-Z_][a-zA-Z0-9_]#|[0-9]##) ]] && (( ${+parameters[${MATCH}]} )); then
|
||||
-hsmw-highlight-main-type ${(P)MATCH}
|
||||
else
|
||||
: ${expanded_path::=${(Q)~arg}}
|
||||
|
|
Loading…
Reference in a new issue