mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-02-13 10:05:31 +08:00
Fix zcompile error with zsh 5.4
Error is:
$ zcompile highlighters/main/test-data/function.zsh
zsh: defining function based on alias `ls'
zsh: parse error near `()'
zcompile: can't read file: highlighters/main/test-data/function.zsh
View `Incompatibilities since 5.3.1` in
bb218704d2/README
This commit is contained in:
parent
434af7b11d
commit
e5091a858d
@ -27,10 +27,10 @@
|
|||||||
# vim: ft=zsh sw=2 ts=2 et
|
# vim: ft=zsh sw=2 ts=2 et
|
||||||
# -------------------------------------------------------------------------------------------------
|
# -------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
cd() {
|
function cd {
|
||||||
builtin cd "$@"
|
builtin cd "$@"
|
||||||
}
|
}
|
||||||
ls() {
|
function ls {
|
||||||
command ls "$@"
|
command ls "$@"
|
||||||
}
|
}
|
||||||
BUFFER='cd;ls'
|
BUFFER='cd;ls'
|
||||||
|
Loading…
Reference in New Issue
Block a user