mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-28 18:30:06 +00:00
Allow ranges for array-like compound literals
This commit is contained in:
@@ -2391,6 +2391,9 @@ parse_value :: proc(p: ^Parser) -> ^ast.Expr {
|
||||
if p.curr_tok.kind == .Open_Brace {
|
||||
return parse_literal_value(p, nil);
|
||||
}
|
||||
prev_allow_range = p.allow_range;
|
||||
defer p.allow_range = prev_allow_range;
|
||||
p.allow_range = true;
|
||||
return parse_expr(p, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user