diff --git a/eo-parser/src/main/java/org/eolang/parser/EoIndentLexer.java b/eo-parser/src/main/java/org/eolang/parser/EoIndentLexer.java index bcdb3cd0c6..e5de30f476 100644 --- a/eo-parser/src/main/java/org/eolang/parser/EoIndentLexer.java +++ b/eo-parser/src/main/java/org/eolang/parser/EoIndentLexer.java @@ -161,7 +161,7 @@ private void emitDedent(final int shift) { * @param type Type. */ private void emitToken(final int type) { - final CommonToken tkn = new CommonToken(type, this.getRuleNames()[type]); + final CommonToken tkn = new CommonToken(type, EoParser.VOCABULARY.getSymbolicName(type)); tkn.setLine(this.getLine() + 1); this.tokens.offer(tkn); } diff --git a/eo-parser/src/test/java/org/eolang/parser/EoIndentLexerTest.java b/eo-parser/src/test/java/org/eolang/parser/EoIndentLexerTest.java index 4c5052a47c..2e33552913 100644 --- a/eo-parser/src/test/java/org/eolang/parser/EoIndentLexerTest.java +++ b/eo-parser/src/test/java/org/eolang/parser/EoIndentLexerTest.java @@ -27,7 +27,6 @@ import org.cactoos.text.TextOf; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; /**