yurloc commented on PR #5899: URL: https://github.com/apache/incubator-kie-drools/pull/5899#issuecomment-2099301720
> ```diff > diff --git a/drools-drl/drools-drl-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRL6Expressions.g4 b/drools-drl/drools-drl-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRL6Expressions.g4 > index 02c20088f4..ac9e0a2d05 100644 > --- a/drools-drl/drools-drl-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRL6Expressions.g4 > +++ b/drools-drl/drools-drl-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRL6Expressions.g4 > @@ -519,7 +519,7 @@ orRestriction returns [BaseDescr result] > $result = descr; > } > } > - )* EOF? > + )*? EOF? > ; > > andRestriction returns [BaseDescr result] > ``` @tkobayas It might actually be a good fix. I'm afraid that the nongreediness can break some other use cases, something like `org.drools.drl.parser.antlr4.MiscDRLParserTest#halfConstraintOperators` but this one is unaffected. Please try to prove it breaks something, otherwise I think we have a fix. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
