Browse Source

Merge pull request #3295 from kavalee/parser-newline-fix

Fixed issue #3264 regarding `core:odin/parser` compound literal not allowing a newline
gingerBill 1 year ago
parent
commit
56004c56fc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/odin/parser/parser.odin

+ 1 - 0
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