diff options
| -rw-r--r-- | boot/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/parse.c b/boot/parse.c index 4fc6107..5d3b26c 100644 --- a/boot/parse.c +++ b/boot/parse.c @@ -499,9 +499,9 @@ parser_statement(struct Parser* p, struct Parser_Error* error) struct Token token = parser_peek(p); // skip empty statements. - if (token_ends_statement(&token)) { + while (token_ends_statement(&token)) { parser_next(p); - return nil; + token = parser_peek(p); } if (token.kind == TOKEN_NAME) { |
