Skip to content

Commit

Permalink
Merge pull request #1236 from jplag/feature/antlr-utils-wrong-token-l…
Browse files Browse the repository at this point in the history
…ength

Fixed an error when extracting the token length
  • Loading branch information
tsaglam authored Aug 11, 2023
2 parents 53a7792 + fcee181 commit 0179822
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void createToken(T antlrContent, VariableRegistry semantics) {

int line = antlrToken.getLine();
int column = antlrToken.getCharPositionInLine() + 1;
int length = antlrToken.getText().length();
int length = getLength(antlrContent);

Token token;
if (semantics != null) {
Expand Down

0 comments on commit 0179822

Please sign in to comment.