mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-04 21:56:46 +01:00
speed up
This commit is contained in:
parent
057533460f
commit
ad22ff1ffa
1 changed files with 5 additions and 3 deletions
|
|
@ -5537,9 +5537,11 @@ function _p9k_parse_buffer() {
|
||||||
state=h
|
state=h
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
'`'[^'`']##'`'|'"`'[^'`']##'`"'|'$('[^')']##')'|'"$('[^')']##')"'|['<>=']'('[^')']##')')
|
*('`'|['<>=$']'(')*)
|
||||||
s=${${token##('"'|)(['$<>']|)?}%%?('"'|)}
|
if [[ $token == ('`'[^'`']##'`'|'"`'[^'`']##'`"'|'$('[^')']##')'|'"$('[^')']##')"'|['<>=']'('[^')']##')') ]]; then
|
||||||
(( ic )) && tokens+=(';' ${(Z+C+)s}) || tokens+=(';' ${(z)s})
|
s=${${token##('"'|)(['$<>']|)?}%%?('"'|)}
|
||||||
|
(( ic )) && tokens+=(';' ${(Z+C+)s}) || tokens+=(';' ${(z)s})
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue