mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-24 13:53: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;
|
||||
|
||||
if (peek_char(ctx) != '#')
|
||||
return;
|
||||
|
||||
do {
|
||||
c = next_char(ctx);
|
||||
} while (c != '\n');
|
||||
while (peek_char(ctx) == '#') {
|
||||
do {
|
||||
c = next_char(ctx);
|
||||
} while (c != '\n');
|
||||
}
|
||||
}
|
||||
|
||||
static void read_while(Lexer *ctx, Predicate p, int add)
|
||||
|
Loading…
Reference in New Issue
Block a user