libregexp: reverting this shit. this is clearly broken.

This commit is contained in:
cinap_lenrek 2016-05-02 21:16:04 +02:00
parent 9c01b9a958
commit de5cabceaf

View file

@ -78,14 +78,14 @@ e2(Parselex *plex)
Renode *n; Renode *n;
n = e3(plex); n = e3(plex);
while(lex(plex) == LREP) { if(lex(plex) == LREP) {
switch(plex->rune) { switch(plex->rune) {
case L'*': case L'*':
n = node(plex, TSTAR, n, nil); return node(plex, TSTAR, n, nil);
case L'+': case L'+':
n = node(plex, TPLUS, n, nil); return node(plex, TPLUS, n, nil);
case L'?': case L'?':
n = node(plex, TQUES, n, nil); return node(plex, TQUES, n, nil);
} }
} }
plex->peek = 1; plex->peek = 1;