runtime: parse: fix parsing of linefeed after last statement in block

This commit is contained in:
2026-06-20 15:11:02 +01:00
parent 4a567a1bb9
commit 8b18421f63
+2
View File
@@ -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;
}