From ae15f228d3488a3ed911a95aba310d027aed1955 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Fri, 6 Dec 2024 20:23:46 +0000 Subject: [PATCH] lang: ast: fix finalise_property not being called when parsing a right paren --- lang/ast/property.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/ast/property.c b/lang/ast/property.c index c104c76..90cdc95 100644 --- a/lang/ast/property.c +++ b/lang/ast/property.c @@ -144,6 +144,7 @@ static struct token_parse_result parse_right_paren( return PARSE_RESULT(IVY_ERR_BAD_SYNTAX, 0); } + finalise_property(state); parser_pop_state(ctx, STATE_ADD_NODE_TO_PARENT); return PARSE_RESULT(IVY_OK, 0); }