Highlight subshells and anonymous functions correctly.

Fixes zsh-users/zsh-syntax-highlighting#166.
Fixes zsh-users/zsh-syntax-highlighting#194.
Builds upon the issue #207 work.
This commit is contained in:
Daniel Shahaf
2015-10-27 15:10:01 +02:00
parent c216242b46
commit 0d1bfbcbfa
3 changed files with 12 additions and 6 deletions

View File

@@ -31,6 +31,6 @@ BUFFER='tar cf - * | (cd /target; tar xfp -)'
expected_region_highlight=(
"1 3 $ZSH_HIGHLIGHT_STYLES[command]" # tar
"15 16 $ZSH_HIGHLIGHT_STYLES[command] 'issue #166'" # cd
"15 16 $ZSH_HIGHLIGHT_STYLES[command]" # cd
"27 29 $ZSH_HIGHLIGHT_STYLES[command]" # tar
)