mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-13 16:15:16 +00:00
Spell “arithmetic” correctly
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
b21ed24025
commit
f8b45e48e1
1 changed files with 4 additions and 4 deletions
|
@ -816,12 +816,12 @@ AndExpression: ast::Expr = {
|
|||
};
|
||||
|
||||
ShiftExpression: ast::Expr = {
|
||||
<e1:ShiftExpression> <location:@L> <op:ShiftOp> <e2:ArithmaticExpression> => ast::Expr {
|
||||
<e1:ShiftExpression> <location:@L> <op:ShiftOp> <e2:ArithmeticExpression> => ast::Expr {
|
||||
location,
|
||||
custom: (),
|
||||
node: ast::ExprKind::BinOp { left: Box::new(e1), op, right: Box::new(e2) }
|
||||
},
|
||||
ArithmaticExpression,
|
||||
ArithmeticExpression,
|
||||
};
|
||||
|
||||
ShiftOp: ast::Operator = {
|
||||
|
@ -829,8 +829,8 @@ ShiftOp: ast::Operator = {
|
|||
">>" => ast::Operator::RShift,
|
||||
};
|
||||
|
||||
ArithmaticExpression: ast::Expr = {
|
||||
<a:ArithmaticExpression> <location:@L> <op:AddOp> <b:Term> => ast::Expr {
|
||||
ArithmeticExpression: ast::Expr = {
|
||||
<a:ArithmeticExpression> <location:@L> <op:AddOp> <b:Term> => ast::Expr {
|
||||
location,
|
||||
custom: (),
|
||||
node: ast::ExprKind::BinOp { left: Box::new(a), op, right: Box::new(b) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue