mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
Perf: add comments explaining where the check for version 5.8 comes from
This commit is contained in:
parent
73dcdb13a6
commit
9a53d98cf4
@ -181,7 +181,8 @@ _zsh_highlight_main__type() {
|
||||
REPLY=hashed
|
||||
fi
|
||||
# ZSH_VERSION >= 5.1 allows the use of #q. ZSH_VERSION <= 5.8 allows skipping
|
||||
# 'type -w' calls that are necessary for forward compatibility.
|
||||
# 'type -w' calls that are necessary for forward compatibility (5.8 is the latest
|
||||
# zsh release at the time of writing).
|
||||
elif [[ $ZSH_VERSION == 5.<1-8>(|.*) ]]; then
|
||||
if [[ $1 == */* ]]; then
|
||||
if [[ -n $1(#q-.*N) ||
|
||||
@ -1765,6 +1766,7 @@ _zsh_highlight_main__precmd_hook() {
|
||||
_zsh_highlight_main__path_cache=()
|
||||
_zsh_highlight_main__arg_cache=()
|
||||
|
||||
# 5.8 is the latest zsh release at the time of writing.
|
||||
if [[ $ZSH_VERSION == (<0-4>.*|5.<0-8>(|.*)) ]]; then
|
||||
_zsh_highlight_main_calculate_styles
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user