mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
Update zsh-syntax-highlighting.zsh
fix regex to not match all
This commit is contained in:
parent
dffe304567
commit
15132eeaed
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user