mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-28 22:30:22 +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}}
|
: ${expanded_path::=${(Q)~arg}}
|
||||||
-hsmw-highlight-main-type $expanded_path
|
-hsmw-highlight-main-type $expanded_path
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $REPLY in
|
case $REPLY in
|
||||||
reserved) # reserved word
|
reserved) # reserved word
|
||||||
style=reserved-word
|
style=reserved-word
|
||||||
|
@ -412,9 +413,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
||||||
elif [[ $arg == $'\x7d' ]]; then
|
elif [[ $arg == $'\x7d' ]]; then
|
||||||
# We're at command word, so no need to check $right_brace_is_recognised_everywhere
|
# We're at command word, so no need to check $right_brace_is_recognised_everywhere
|
||||||
-hsmw-highlight-stack-pop 'Y' style=reserved-word
|
-hsmw-highlight-stack-pop 'Y' style=reserved-word
|
||||||
if [[ $style == reserved-word ]]; then
|
[[ $style == "reserved-word" ]] && (( next_word = next_word | BIT_always ))
|
||||||
(( next_word = next_word | BIT_always ))
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
'suffix alias') style=suffix-alias;;
|
'suffix alias') style=suffix-alias;;
|
||||||
|
|
Loading…
Reference in a new issue