1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 08:00:06 +00:00

use more precise pattern for process substitutions

This commit is contained in:
romkatv 2020-01-13 22:26:42 +01:00
parent bbc6f8638e
commit 057533460f

View file

@ -5537,7 +5537,7 @@ function _p9k_parse_buffer() {
state=h
continue
;;
'`'*'`'|'"`'*'`"'|'$('*')'|'"$('*')"'|['<>=']'('*')')
'`'[^'`']##'`'|'"`'[^'`']##'`"'|'$('[^')']##')'|'"$('[^')']##')"'|['<>=']'('[^')']##')')
s=${${token##('"'|)(['$<>']|)?}%%?('"'|)}
(( ic )) && tokens+=(';' ${(Z+C+)s}) || tokens+=(';' ${(z)s})
;;