diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-01-14 00:32:23 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-01-14 00:32:23 +0300 |
commit | ad22ff1ffaae69eabf00047da75d5cfefead178c (patch) | |
tree | cb8251b521a30893428252fe6357f16454b67868 /internal | |
parent | 057533460ffc84cf136871c425ffd2886fd0840e (diff) |
speed up
Diffstat (limited to 'internal')
-rw-r--r-- | internal/p10k.zsh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index b06fe754..3da8ba0a 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5537,9 +5537,11 @@ function _p9k_parse_buffer() { state=h continue ;; - '`'[^'`']##'`'|'"`'[^'`']##'`"'|'$('[^')']##')'|'"$('[^')']##')"'|['<>=']'('[^')']##')') - s=${${token##('"'|)(['$<>']|)?}%%?('"'|)} - (( ic )) && tokens+=(';' ${(Z+C+)s}) || tokens+=(';' ${(z)s}) + *('`'|['<>=$']'(')*) + if [[ $token == ('`'[^'`']##'`'|'"`'[^'`']##'`"'|'$('[^')']##')'|'"$('[^')']##')"'|['<>=']'('[^')']##')') ]]; then + s=${${token##('"'|)(['$<>']|)?}%%?('"'|)} + (( ic )) && tokens+=(';' ${(Z+C+)s}) || tokens+=(';' ${(z)s}) + fi ;; esac |