Skip to content

Commit

Permalink
Fixed an error when extracting the token length
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoOfTwelve committed Aug 10, 2023
1 parent 53a7792 commit fcee181
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 fcee181

Please sign in to comment.