This commit is contained in:
Nikita Ivanov 2022-06-08 08:39:07 +05:00
parent ab271fd493
commit 9227cea15d
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -227,12 +227,8 @@ static inline Token read_end(Lexer *ctx)
Token tok = get_tok(ctx, TOK_NULL); Token tok = get_tok(ctx, TOK_NULL);
while (peek_char(ctx) == '\n') { while (peek_char(ctx) == '\n') {
char c = peek_char(ctx);
if (c != '\n')
break;
next_char(ctx); next_char(ctx);
tok = get_tok(ctx, TOK_END); tok.type = TOK_END;
} }
return tok; return tok;