mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-24 20:33:04 +00:00
*highlight: Let "emulate" be first instruction in *process function
parse.zsh -oo, after changes: Running time: 1.7100990000 num calls time self name ----------------------------------------------------------------------------------- 1) 350 1702,69 4,86 99,99% 1229,47 3,51 72,20% -hsmw-highlight-process 2) 2800 337,70 0,12 19,83% 337,70 0,12 19,83% -hsmw-highlight-string 3) 2450 79,86 0,03 4,69% 79,86 0,03 4,69% -hsmw-highlight-check-path 4) 1400 38,44 0,03 2,26% 38,44 0,03 2,26% -hsmw-highlight-main-type 5) 350 9,76 0,03 0,57% 9,76 0,03 0,57% -hsmw-highlight-stack-pop 6) 350 7,48 0,02 0,44% 7,48 0,02 0,44% -hsmw-highlight-path-separators 7) 1 0,09 0,09 0,01% 0,09 0,09 0,01% -hsmw-highlight-fill-option-variables 8) 1 0,01 0,01 0,00% 0,01 0,01 0,00% -hsmw-highlight-init
This commit is contained in:
parent
13b3934f76
commit
760fc6cc75
1 changed files with 2 additions and 2 deletions
|
@ -224,11 +224,11 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
# Main syntax highlighting function.
|
||||
-hsmw-highlight-process()
|
||||
{
|
||||
(( ointeractive_comments )) && local interactive_comments= # _set_ to empty
|
||||
|
||||
emulate -L zsh
|
||||
setopt localoptions extendedglob bareglobqual nonomatch noksharrays
|
||||
|
||||
(( ointeractive_comments )) && local interactive_comments= # _set_ to empty
|
||||
|
||||
# Variable declarations and initializations
|
||||
# in_array_assignment true between 'a=(' and the matching ')'
|
||||
# braces_stack: "R" for round, "Q" for square, "Y" for curly
|
||||
|
|
Loading…
Reference in a new issue