From 4901404fb65c3356fb48a42ad0a0f4922ea5d176 Mon Sep 17 00:00:00 2001 From: Hannes Bredberg Date: Thu, 31 Aug 2023 22:42:26 +0200 Subject: [PATCH] Parse container static decl types with precedence --- selfhost/parser.n | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfhost/parser.n b/selfhost/parser.n index 843975f..ce9d13f 100644 --- a/selfhost/parser.n +++ b/selfhost/parser.n @@ -438,7 +438,7 @@ fn parse_container_body(context: *ParserContext) u32 { context.expect("Expected identifier for static declaration".&, .identifier); if(context.peek() == .colon) { context.advance(); - stmt_payload[0].get(decl).* = parse_expression(context); + stmt_payload[0].get(decl).* = parse_expression_with_precedence(context, 0); } else { stmt_payload[0].get(decl).* = -1; }