We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f729726 commit dc70e89Copy full SHA for dc70e89
tests/test-highlighting.zsh
@@ -93,9 +93,13 @@ ZSH_HIGHLIGHT_HIGHLIGHTERS=($1)
93
94
# In zsh<5.3, 'typeset -p arrayvar' emits two lines, so we use this wrapper instead.
95
typeset_p() {
96
- for 1 ; do
97
- print -r -- "$1=( ${(@q-P)1} )"
98
- done
+ for 1 ; do
+ if [[ ${(tP)1} == *array* ]]; then
+ print -r -- "$1=( ${(@q-P)1} )"
99
+ else
100
+ print -r -- "$1=${(q-P)1}"
101
+ fi
102
+ done
103
}
104
105
# Escape # as ♯ and newline as ↵ they are illegal in the 'description' part of TAP output
0 commit comments