mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-01-30 09:47:13 +08:00
Revert "tests: Run tests in an anon function to catch global variables"
This reverts commit ba2d8fcf76
.
Breaks 4.3.12 and .11
This commit is contained in:
parent
ba2d8fcf76
commit
3259fe338d
@ -33,7 +33,6 @@ setopt NO_UNSET WARN_CREATE_GLOBAL
|
||||
|
||||
local -r root=${0:h:h}
|
||||
|
||||
(){
|
||||
# Check an highlighter was given as argument.
|
||||
[[ -n "$1" ]] || {
|
||||
echo >&2 "Bail out! You must provide the name of a valid highlighter as argument."
|
||||
@ -220,4 +219,3 @@ for data_file in $root/highlighters/$1/test-data/*.zsh; do
|
||||
done
|
||||
|
||||
exit $something_failed
|
||||
} "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user