diff --git a/bshell.runtime/parse/syntax/block.c b/bshell.runtime/parse/syntax/block.c index 613c8c4..18e2a01 100644 --- a/bshell.runtime/parse/syntax/block.c +++ b/bshell.runtime/parse/syntax/block.c @@ -28,6 +28,8 @@ bool parse_block(struct bshell_parse_ctx *ctx, struct bshell_ast_node **out) fx_queue_push_back(&block->n_statements, &stmt->n_entry); + parse_linefeed(ctx); + if (parse_symbol(ctx, BSHELL_SYM_RIGHT_BRACE)) { break; }