diff --git a/highlighters/main/test-data/alias.zsh b/highlighters/main/test-data/alias.zsh index 5129614..2977343 100644 --- a/highlighters/main/test-data/alias.zsh +++ b/highlighters/main/test-data/alias.zsh @@ -29,6 +29,9 @@ alias alias1="unused expansion" alias -s alias2="echo" +if set -o | grep -q aliasfuncdef; then + setopt alias_func_def # 5.4+ +fi alias1() {} # to check that it's highlighted as an alias, not as a function BUFFER='x.alias2; alias1'