fixed issue #3264 regarding core:odin/parser not allowing a newline at the end of a compound literal
This commit is contained in:
1 parent
ac634acd4b
commit
096b4f5454
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user