Update zsh-syntax-highlighting.zsh

fix regex to not match all
This commit is contained in:
bagnaram 2021-07-26 13:55:27 -05:00 committed by GitHub
parent dffe304567
commit 15132eeaed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ typeset zsh_highlight__aliases="$(builtin alias -Lm '[^+]*')"
# are emitted by `alias -L` without a '--' guard, so they don't round trip.
#
# Hence, we exclude them from unaliasing:
builtin unalias -m '[^+]*'
builtin unalias -m '^+.*'
# Set $0 to the expected value, regardless of functionargzero.
0=${(%):-%N}