libregexp: reverting this shit. this is clearly broken.
This commit is contained in:
parent
9c01b9a958
commit
de5cabceaf
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue