Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit ffed588

Browse files
committed
NamedExpr include full range
1 parent f518910 commit ffed588

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

parser/src/python.lalrpop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ NamedExpressionTest: ast::Expr = {
11961196
}
11971197

11981198
NamedExpression: ast::Expr = {
1199-
<location:@L> <id:Identifier> <end_location:@R> ":=" <value:Test<"all">> => {
1199+
<location:@L> <id:Identifier> ":=" <value:Test<"all">> <end_location:@R> => {
12001200
ast::Expr::NamedExpr(
12011201
ast::ExprNamedExpr {
12021202
target: Box::new(ast::Expr::Name(

parser/src/python.rs

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

parser/src/snapshots/rustpython_parser__context__tests__assign_named_expr.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)