yurloc commented on PR #5899:
URL: 
https://github.com/apache/incubator-kie-drools/pull/5899#issuecomment-2098233665

   Lol, the nongreediness seems to work, and it's _one-character_ fix :rofl:
   
   ```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]
   ```
   
   Seriously - it looks _promising_ as it makes the tests in this PR pass but 
I'm running into some issues in the `kie-dmn-validation` module. Might need 
another pair of :eyes: 


-- 
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]

Reply via email to