Skip to content

Commit 74056f5

Browse files
committed
main: Ignore zsh 5.0.8 off by one bug in tests
1 parent 39cf7db commit 74056f5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

highlighters/main/test-data/command-substitution-unclosed.zsh

+4
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ expected_region_highlight=(
3737
'8 11 builtin' # echo
3838
'13 15 default' # bar
3939
)
40+
41+
if [[ ${(z):-'$('} == '$( ' ]]; then # ignore zsh 5.0.8 bug
42+
expected_region_highlight[2]='3 16 default' # foo$(echo bar
43+
fi

highlighters/main/test-data/process-substitution2.zsh

+4
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ expected_region_highlight=(
4141
'19 22 builtin' # echo
4242
'24 26 default' # foo
4343
)
44+
45+
if [[ ${(z):-'$('} == '$( ' ]]; then # ignore zsh 5.0.8 bug
46+
expected_region_highlight[6]='17 27 default' # =(echo foo
47+
fi

0 commit comments

Comments
 (0)