forked from jasder/antlr
Report file names with lexer errors
This commit is contained in:
parent
5948f50288
commit
0e5bcc2416
|
@ -1094,6 +1094,9 @@ public class TestPerformance extends BaseTest {
|
|||
sharedLexers[thread] = lexer;
|
||||
}
|
||||
|
||||
lexer.removeErrorListeners();
|
||||
lexer.addErrorListener(DescriptiveErrorListener.INSTANCE);
|
||||
|
||||
if (lexer.getInterpreter().decisionToDFA[0] == null) {
|
||||
ATN atn = lexer.getATN();
|
||||
for (int i = 0; i < lexer.getInterpreter().decisionToDFA.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue