[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Problems with lpeg.Cmt captures
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 10 Apr 2008 15:09:00 -0300
>>> So for some reason, despite returning the fact that I said the match
>>> succeeded, it appears to have failed and is calling it again.
>>> [...]
> I think this line is the culprit:
>
> Expr = -EndifExpr * (EscapeExpr + CommentExpr + IfExpr + TemplateRefExpr +
> AttrRefExpr)
Clearly it is the culprit. As you said, EndifExpr succeeds, so
-EndifExpr fails. A later match against IfExpr tries EndifExpr again.
-- Roberto