From 8b18421f6351b1c308d31904979e119dd02af65c Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 20 Jun 2026 15:11:02 +0100 Subject: [PATCH] runtime: parse: fix parsing of linefeed after last statement in block --- bshell.runtime/parse/syntax/block.c | 2 ++ 1 file changed, 2 insertions(+) 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; }