aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index d069a23c5f..6ee3b877ad 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -2552,7 +2552,7 @@ static AstNode *ast_parse_container_decl(ParseContext *pc, size_t *token_index,
Token *eq_token = &pc->tokens->at(*token_index);
if (eq_token->id == TokenIdEq) {
*token_index += 1;
- field_node->data.struct_field.value = ast_parse_prefix_op_expr(pc, token_index, true);
+ field_node->data.struct_field.value = ast_parse_expression(pc, token_index, true);
}
Token *next_token = &pc->tokens->at(*token_index);