Skip to content

Commit

Permalink
#99 aibolit fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 15, 2020
1 parent c6c90ec commit 414be57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/xembly/Verbs.java
Expand Up @@ -65,12 +65,12 @@ public Collection<Directive> directives() {
final XemblyLexer lexer = new XemblyLexer(
CharStreams.fromString(this.text)
);
lexer.removeErrorListeners();
lexer.addErrorListener(this.errors());
final XemblyParser parser =
new XemblyParser(
new CommonTokenStream(lexer)
);
lexer.removeErrorListeners();
lexer.addErrorListener(this.errors());
parser.removeErrorListeners();
parser.addErrorListener(this.errors());
try {
Expand Down

0 comments on commit 414be57

Please sign in to comment.