mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-12-01 00:43:08 +01:00
Fix
This commit is contained in:
parent
773df4c35a
commit
6900c4c9fa
@ -192,12 +192,11 @@ static void ignore_comments(Lexer *ctx)
|
|||||||
{
|
{
|
||||||
char c;
|
char c;
|
||||||
|
|
||||||
if (peek_char(ctx) != '#')
|
while (peek_char(ctx) == '#') {
|
||||||
return;
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
c = next_char(ctx);
|
c = next_char(ctx);
|
||||||
} while (c != '\n');
|
} while (c != '\n');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void read_while(Lexer *ctx, Predicate p, int add)
|
static void read_while(Lexer *ctx, Predicate p, int add)
|
||||||
|
Loading…
Reference in New Issue
Block a user