Do you mean that you don't want ANTLR errors to be mixed with jython's lexer/parser errors in the same container inside of RecordingErrorHandler or you just want error messages _text style_ to be the same?
+ @Override
+ public void reportError(RecognitionException e) {
+ // Update syntax error count and output error.
+ super.reportError(e);
+ errorHandler.reportError(this, e);
-}
+ }
+}
smokxx: we won't be able to do it like you have as we will end up with ANTLR style error messages on top of/mixed in with Python style error messages - is there any way you can change your patch to extend some kind of errorHandler?
_______________________________________
Jython tracker <report@bugs.jython.org>
<http://bugs.jython.org/issue1866>
_______________________________________