mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2025-02-16 11:08:23 +00:00
*highlight: Prepare *-stack-pop for removal – shorter, compressed
This commit is contained in:
parent
430ebac5a1
commit
36aa966a09
1 changed files with 3 additions and 5 deletions
|
@ -158,12 +158,10 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
# $1: character expected to be at the top of $braces_stack
|
||||
# $2: assignment to execute it if matches
|
||||
-hsmw-highlight-stack-pop() {
|
||||
if [[ $braces_stack[1] == $1 ]]; then
|
||||
braces_stack=${braces_stack:1}
|
||||
[[ $braces_stack[1] == $1 ]] && {
|
||||
braces_stack[1]=""
|
||||
style=reserved-word
|
||||
else
|
||||
style=unknown-token
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
# Below are variables that must be defined in outer
|
||||
|
|
Loading…
Add table
Reference in a new issue