mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Perf: backport recent changes to older zsh versions
This commit is contained in:
parent
818e2f2290
commit
1b8f49ac5b
2 changed files with 32 additions and 55 deletions
|
|
@ -204,7 +204,7 @@ _zsh_highlight()
|
|||
# copying all options.
|
||||
zsyh_user_options=(
|
||||
ignorebraces "${options[ignorebraces]}"
|
||||
ignoreclosebraces "${options[ignoreclosebraces]}"
|
||||
ignoreclosebraces "${options[ignoreclosebraces]-off}"
|
||||
pathdirs "${options[pathdirs]}"
|
||||
interactivecomments "${options[interactivecomments]}"
|
||||
globassign "${options[globassign]}"
|
||||
|
|
@ -237,7 +237,8 @@ _zsh_highlight()
|
|||
new_highlight=( "${(@)region_highlight:#*memo=zsh-syntax-highlighting*}" )
|
||||
fi
|
||||
|
||||
emulate -L zsh -o warncreateglobal -o nobashrematch
|
||||
emulate -L zsh
|
||||
setopt warncreateglobal nobashrematch
|
||||
local REPLY # don't leak $REPLY into global scope
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue