tests: Avoid using new zmodload flags

Unbreaks build on pre-5.4.
This commit is contained in:
Matthew Martin 2017-12-14 20:58:32 -06:00
parent 2919679ee8
commit 3e56294543

View File

@ -27,7 +27,7 @@
# vim: ft=zsh sw=2 ts=2 et # vim: ft=zsh sw=2 ts=2 et
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
if zmodload -s zsh/pcre; then if zmodload zsh/pcre 2>/dev/null; then
setopt RE_MATCH_PCRE setopt RE_MATCH_PCRE
ZSH_HIGHLIGHT_REGEXP+=('\bsudo\b' 'fg=white,bold,bg=red') ZSH_HIGHLIGHT_REGEXP+=('\bsudo\b' 'fg=white,bold,bg=red')