Skip to content

Commit

Permalink
Parse container static decl types with precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
N00byEdge committed Aug 31, 2023
1 parent 6290937 commit 4901404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfhost/parser.n
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4901404

Please sign in to comment.