diff --git a/parser/python.lalrpop b/parser/python.lalrpop index 27fbb3d..0bee50d 100644 --- a/parser/python.lalrpop +++ b/parser/python.lalrpop @@ -1037,7 +1037,7 @@ SubscriptList: ast::Expr = { }; Subscript: ast::Expr = { - Test<"all">, + NamedExpressionTest, ?> ":" ?> => { let lower = e1.map(Box::new); let upper = e2.map(Box::new); @@ -1199,7 +1199,7 @@ Atom: ast::Expr = { custom: (), node: ast::ExprKind::Set { elts } }, - "{" > "}" => { + "{" "}" => { ast::Expr { location, end_location: Some(end_location),