This commit is contained in:
Nikita Ivanov 2022-06-11 11:27:21 +05:00
parent 773df4c35a
commit 6900c4c9fa
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -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)