You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix infinite loop when comment follows /; operator
The Operator and ConditionOp grammar rules were non-atomic, causing
pest to consume WHITESPACE/COMMENT tokens within the operator span.
This made as_str() return e.g. "/; (*foo*) " instead of "/;", which
wasn't recognized as a valid operator and produced a Raw expression
that was re-evaluated infinitely.
Fix: make both rules atomic (@{ }) so comments are not included in
the operator span.
0 commit comments