diff --git a/parser/python.lalrpop b/parser/python.lalrpop index b1dea04..c1f6ee0 100644 --- a/parser/python.lalrpop +++ b/parser/python.lalrpop @@ -870,7 +870,7 @@ CompOp: ast::Cmpop = { Expression = ExpressionAs; ExpressionAs: Goal = { - "|" => ast::Expr { + "|" => ast::Expr { location, end_location: Some(end_location), custom: (), @@ -881,7 +881,7 @@ ExpressionAs: Goal = { XorExpression = XorExpressionAs; XorExpressionAs: Goal = { - "^" => ast::Expr { + "^" => ast::Expr { location, end_location: Some(end_location), custom: (), @@ -892,7 +892,7 @@ XorExpressionAs: Goal = { AndExpression = AndExpressionAs; AndExpressionAs: Goal = { - "&" => ast::Expr { + "&" => ast::Expr { location, end_location: Some(end_location), custom: (), @@ -903,7 +903,7 @@ AndExpressionAs: Goal = { ShiftExpression = ShiftExpressionAs; ShiftExpressionAs: Goal = { - => ast::Expr { + => ast::Expr { location, end_location: Some(end_location), custom: (), @@ -935,7 +935,7 @@ AddOp: ast::Operator = { Term = TermAs; TermAs: Goal = { - => ast::Expr { + => ast::Expr { location, end_location: Some(end_location), custom: (), @@ -971,7 +971,7 @@ UnaryOp: ast::Unaryop = { Power = PowerAs; PowerAs: Goal = { - "**" => ast::Expr { + "**" => ast::Expr { location, end_location: Some(end_location), custom: (), diff --git a/parser/src/snapshots/rustpython_parser__parser__tests__parse_lambda.snap b/parser/src/snapshots/rustpython_parser__parser__tests__parse_lambda.snap index f305878..df154a3 100644 --- a/parser/src/snapshots/rustpython_parser__parser__tests__parse_lambda.snap +++ b/parser/src/snapshots/rustpython_parser__parser__tests__parse_lambda.snap @@ -78,7 +78,7 @@ expression: parse_ast body: Located { location: Location { row: 1, - column: 15, + column: 13, }, end_location: Some( Location {