From 096b4f54543cc3048bb430317aa286a31f2204e6 Mon Sep 17 00:00:00 2001 From: Aaron Kavaler Date: Mon, 18 Mar 2024 20:32:30 -0700 Subject: [PATCH] fixed issue #3264 regarding core:odin/parser not allowing a newline at the end of a compound literal --- core/odin/parser/parser.odin | 1 + 1 file changed, 1 insertion(+) diff --git a/core/odin/parser/parser.odin b/core/odin/parser/parser.odin index fc7a2c792..ab723e145 100644 --- a/core/odin/parser/parser.odin +++ b/core/odin/parser/parser.odin @@ -2947,6 +2947,7 @@ parse_literal_value :: proc(p: ^Parser, type: ^ast.Expr) -> ^ast.Comp_Lit { } p.expr_level -= 1 + skip_possible_newline(p) close := expect_token_after(p, .Close_Brace, "compound literal") pos := type.pos if type != nil else open.pos