From 9616bfdb204359b1dd813deee6b279fc750d2fc1 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Wed, 4 Apr 2018 23:10:54 -0500 Subject: [PATCH] main: Ignore zsh 5.0.8 off by one bug in tests --- highlighters/main/test-data/command-substitution-unclosed.zsh | 4 ++++ highlighters/main/test-data/process-substitution2.zsh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/highlighters/main/test-data/command-substitution-unclosed.zsh b/highlighters/main/test-data/command-substitution-unclosed.zsh index 6a2b73d..198e710 100644 --- a/highlighters/main/test-data/command-substitution-unclosed.zsh +++ b/highlighters/main/test-data/command-substitution-unclosed.zsh @@ -37,3 +37,7 @@ expected_region_highlight=( '8 11 builtin' # echo '13 15 default' # bar ) + +if [[ ${(z):-'$('} == '$( ' ]]; then # ignore zsh 5.0.8 bug + expected_region_highlight[2]='3 16 default' # foo$(echo bar +fi diff --git a/highlighters/main/test-data/process-substitution2.zsh b/highlighters/main/test-data/process-substitution2.zsh index da3f41f..dff3108 100644 --- a/highlighters/main/test-data/process-substitution2.zsh +++ b/highlighters/main/test-data/process-substitution2.zsh @@ -41,3 +41,7 @@ expected_region_highlight=( '19 22 builtin' # echo '24 26 default' # foo ) + +if [[ ${(z):-'$('} == '$( ' ]]; then # ignore zsh 5.0.8 bug + expected_region_highlight[6]='17 27 default' # =(echo foo +fi