mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-06-21 02:18:24 +02:00
Fix
This commit is contained in:
parent
ab271fd493
commit
9227cea15d
6
lexer.c
6
lexer.c
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user