diff options
Diffstat (limited to 'src/parse')
| -rw-r--r-- | src/parse/collection.rs | 2 | ||||
| -rw-r--r-- | src/parse/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/collection.rs b/src/parse/collection.rs index ca05b998..9addcef0 100644 --- a/src/parse/collection.rs +++ b/src/parse/collection.rs @@ -93,7 +93,7 @@ impl State { fn into_expr(self) -> Expr { match self { Self::Unknown => Expr::Array(vec![]), - Self::Expr(expr) => Expr::Group(Box::new(expr.v)), + Self::Expr(expr) => Expr::Group(Box::new(expr)), Self::Array(array) => Expr::Array(array), Self::Dict(dict) => Expr::Dict(dict), } diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 7c92185d..0a656366 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -222,7 +222,7 @@ fn bracket_body(p: &mut Parser) -> Tree { fn block(p: &mut Parser) -> Option<Expr> { p.push_mode(TokenMode::Code); p.start_group(Group::Brace); - let expr = expr(p); + let expr = p.span_if(expr); while !p.eof() { p.diag_unexpected(); } |
