aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-14 00:32:23 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-14 00:32:23 +0300
commitad22ff1ffaae69eabf00047da75d5cfefead178c (patch)
treecb8251b521a30893428252fe6357f16454b67868
parent057533460ffc84cf136871c425ffd2886fd0840e (diff)
speed up
-rw-r--r--internal/p10k.zsh8
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