mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
brackets: Highlight the closing brackets of subshells and blocks. (Issue #226.)
This commit is contained in:
parent
28abb960de
commit
c0dafd1d85
2 changed files with 7 additions and 2 deletions
|
|
@ -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]" # }
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue