Parser: improve performance

This commit is contained in:
marihachi 2021-04-18 14:13:23 +09:00
parent b09c3d4691
commit c5189d8f52

View file

@ -121,7 +121,10 @@ inline
// block: quote
quote
= &(BEGIN ">") head:quoteMultiLine tails:quoteMultiLine+
= &(BEGIN ">") q:quoteInner { return q; }
quoteInner
= head:quoteMultiLine tails:quoteMultiLine+
{
const children = applyParser([head, ...tails].join('\n'), 'fullParser');
return QUOTE(children);