We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 312bc5e commit 8202bd1Copy full SHA for 8202bd1
1 file changed
src/parser.c
@@ -543,7 +543,6 @@ static Stmt* parse_if(Parser* parser) {
543
Stmt* then_block = parse_block(parser);
544
Stmt* stmt = stmt_if(cond, then_block, if_tok.line, if_tok.column);
545
546
- skip_newlines(parser);
547
while (parser->current_token.type == TOKEN_ELSEIF) {
548
advance(parser);
549
consume(parser, TOKEN_LPAREN, "Expected '(' after ELSEIF");
@@ -553,7 +552,6 @@ static Stmt* parse_if(Parser* parser) {
553
552
Stmt* elif_block = parse_block(parser);
554
expr_list_add(&stmt->as.if_stmt.elif_conditions, elif_cond);
555
stmt_list_add(&stmt->as.if_stmt.elif_blocks, elif_block);
556
557
}
558
559
if (parser->current_token.type == TOKEN_ELSE) {
0 commit comments