mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2025-02-16 11:08:23 +00:00
*highlight: Optimization: *-string doesn't need "return 0"
parse.zsh -oo, after changes: Running time: 1.6861610000 num calls time self name ----------------------------------------------------------------------------------- 1) 350 1678,63 4,80 99,99% 1228,93 3,51 73,21% -hsmw-highlight-process 2) 2800 325,42 0,12 19,39% 325,42 0,12 19,39% -hsmw-highlight-string 3) 2450 80,89 0,03 4,82% 80,89 0,03 4,82% -hsmw-highlight-check-path 4) 1400 26,01 0,02 1,55% 26,01 0,02 1,55% -hsmw-highlight-main-type 5) 350 9,92 0,03 0,59% 9,92 0,03 0,59% -hsmw-highlight-stack-pop 6) 350 7,45 0,02 0,44% 7,45 0,02 0,44% -hsmw-highlight-path-separators 7) 1 0,10 0,10 0,01% 0,10 0,10 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
6a0228a2a3
commit
bd1a7c4d7b
1 changed files with 0 additions and 2 deletions
|
@ -663,8 +663,6 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
idx=end_idx
|
||||
}
|
||||
done
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
# Highlight special chars inside dollar-quoted strings
|
||||
|
|
Loading…
Add table
Reference in a new issue