yurloc commented on code in PR #5778:
URL: 
https://github.com/apache/incubator-kie-drools/pull/5778#discussion_r1521580046


##########
drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/antlr4/ParserHelper.java:
##########
@@ -360,15 +358,8 @@ public boolean validateAttribute( int index ) {
                              DroolsSoftKeywords.DIRECT );
     }
 
-    public void reportError( RecognitionException ex ) {
-        // if we've already reported an error and have not matched a token
-        // yet successfully, don't report any errors.
-        if ( state.errorRecovery ) {
-            return;
-        }
-        state.errorRecovery = true;

Review Comment:
   Error recovery is handled by the parser's `DefaultErrorStrategy`.



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