mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 07:23:07 +01:00
Fix
This commit is contained in:
parent
773df4c35a
commit
6900c4c9fa
11
src/lexer.c
11
src/lexer.c
@ -192,12 +192,11 @@ static void ignore_comments(Lexer *ctx)
|
|||||||
{
|
{
|
||||||
char c;
|
char c;
|
||||||
|
|
||||||
if (peek_char(ctx) != '#')
|
while (peek_char(ctx) == '#') {
|
||||||
return;
|
do {
|
||||||
|
c = next_char(ctx);
|
||||||
do {
|
} while (c != '\n');
|
||||||
c = next_char(ctx);
|
}
|
||||||
} 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