mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-24 20:33:04 +00:00
*highlight: Compress always-block related code, use explicit string
This commit is contained in:
parent
07569cd060
commit
f65df29907
1 changed files with 2 additions and 3 deletions
|
@ -404,6 +404,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
: ${expanded_path::=${(Q)~arg}}
|
||||
-hsmw-highlight-main-type $expanded_path
|
||||
fi
|
||||
|
||||
case $REPLY in
|
||||
reserved) # reserved word
|
||||
style=reserved-word
|
||||
|
@ -412,9 +413,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
elif [[ $arg == $'\x7d' ]]; then
|
||||
# We're at command word, so no need to check $right_brace_is_recognised_everywhere
|
||||
-hsmw-highlight-stack-pop 'Y' style=reserved-word
|
||||
if [[ $style == reserved-word ]]; then
|
||||
(( next_word = next_word | BIT_always ))
|
||||
fi
|
||||
[[ $style == "reserved-word" ]] && (( next_word = next_word | BIT_always ))
|
||||
fi
|
||||
;;
|
||||
'suffix alias') style=suffix-alias;;
|
||||
|
|
Loading…
Reference in a new issue