brackets: Highlight the closing brackets of subshells and blocks. (Issue #226.)

This commit is contained in:
Daniel Shahaf
2015-10-30 20:20:30 +02:00
parent 28abb960de
commit c0dafd1d85
2 changed files with 7 additions and 2 deletions

View File

@@ -27,12 +27,15 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
BUFFER='tar cf - * | (cd /target; tar xfp -)'
BUFFER='tar cf - * | (cd /target; tar xfp -) | { cat }'
expected_region_highlight=(
"1 3 $ZSH_HIGHLIGHT_STYLES[command]" # tar
"14 14 $ZSH_HIGHLIGHT_STYLES[reserved-word]" # (
"15 16 $ZSH_HIGHLIGHT_STYLES[command]" # cd
"27 29 $ZSH_HIGHLIGHT_STYLES[command]" # tar
#"36 36 $ZSH_HIGHLIGHT_STYLES[?]" # )
"36 36 $ZSH_HIGHLIGHT_STYLES[reserved-word]" # )
"40 40 $ZSH_HIGHLIGHT_STYLES[reserved-word]" # {
"42 44 $ZSH_HIGHLIGHT_STYLES[command]" # cat
"46 46 $ZSH_HIGHLIGHT_STYLES[reserved-word]" # }
)