From 20d35acce19a5d3d3ada15efe26a8108b4fcb211 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 10 May 2024 15:59:14 +0100 Subject: [PATCH] Fix parser --- core/odin/parser/parser.odin | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/odin/parser/parser.odin b/core/odin/parser/parser.odin index b2ffd3888..e32fbdced 100644 --- a/core/odin/parser/parser.odin +++ b/core/odin/parser/parser.odin @@ -2117,7 +2117,9 @@ parse_proc_type :: proc(p: ^Parser, tok: tokenizer.Token) -> ^ast.Proc_Type { } expect_token(p, .Open_Paren) + p.expr_level += 1 params, _ := parse_field_list(p, .Close_Paren, ast.Field_Flags_Signature_Params) + p.expr_level -= 1 expect_closing_parentheses_of_field_list(p) results, diverging := parse_results(p)