Browse Source

Merge pull request #5673 from BradLewis/fix/parser-proc-group-trailing-comma

Allow missing trailing comma with proc groups with odin parser
gingerBill 1 day ago
parent
commit
475791476b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/odin/parser/parser.odin

+ 1 - 1
core/odin/parser/parser.odin

@@ -2485,7 +2485,7 @@ parse_operand :: proc(p: ^Parser, lhs: bool) -> ^ast.Expr {
 				allow_token(p, .Comma) or_break
 			}
 
-			close := expect_token(p, .Close_Brace)
+			close := expect_closing_brace_of_field_list(p)
 
 			if len(args) == 0 {
 				error(p, tok.pos, "expected at least 1 argument in procedure group")