mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
test harness: Properly quote error message interpolations.
No functional change, except that error messages are now more readable.
This commit is contained in:
parent
282c7134e8
commit
30d8f92df2
2 changed files with 5 additions and 5 deletions
|
|
@ -37,13 +37,13 @@
|
|||
|
||||
# Check the highlighter is valid.
|
||||
[[ -f ${0:h:h}/highlighters/$1/$1-highlighter.zsh ]] || {
|
||||
echo >&2 "Bail out! Could not find highlighter '$1'."
|
||||
echo >&2 "Bail out! Could not find highlighter ${(qq)1}."
|
||||
exit 2
|
||||
}
|
||||
|
||||
# Check the highlighter has test data.
|
||||
[[ -d ${0:h:h}/highlighters/$1/test-data ]] || {
|
||||
echo >&2 "Bail out! Highlighter '$1' has no test data."
|
||||
echo >&2 "Bail out! Highlighter ${(qq)1} has no test data."
|
||||
exit 2
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue