runtime: parse: fix parsing of linefeed after last statement in block
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user