|
|
@@ -57,7 +57,7 @@ static Token makeToken(TokenType type) {
|
|
|
token.type = type;
|
|
|
token.start = scanner.start;
|
|
|
token.length = (int) (scanner.current - scanner.start);
|
|
|
- token.length = scanner.line;
|
|
|
+ token.line = scanner.line;
|
|
|
return token;
|
|
|
}
|
|
|
static Token errorToken(const char *message) {
|
|
|
@@ -65,7 +65,7 @@ static Token errorToken(const char *message) {
|
|
|
token.type = TOKEN_ERROR;
|
|
|
token.start = message;
|
|
|
token.length = (int) strlen(message);
|
|
|
- token.length = scanner.line;
|
|
|
+ token.line = scanner.line;
|
|
|
return token;
|
|
|
}
|
|
|
|