mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Merge pull request #3295 from kavalee/parser-newline-fix
Fixed issue #3264 regarding `core:odin/parser` compound literal not allowing a newline
This commit is contained in:
@@ -2947,6 +2947,7 @@ parse_literal_value :: proc(p: ^Parser, type: ^ast.Expr) -> ^ast.Comp_Lit {
|
|||||||
}
|
}
|
||||||
p.expr_level -= 1
|
p.expr_level -= 1
|
||||||
|
|
||||||
|
skip_possible_newline(p)
|
||||||
close := expect_token_after(p, .Close_Brace, "compound literal")
|
close := expect_token_after(p, .Close_Brace, "compound literal")
|
||||||
|
|
||||||
pos := type.pos if type != nil else open.pos
|
pos := type.pos if type != nil else open.pos
|
||||||
|
|||||||
Reference in New Issue
Block a user