Skip to content

Commit 93cb05e

Browse files
committed
Fix location
1 parent e8200ab commit 93cb05e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎parser/python.lalrpop‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ LambdaDef: ast::Expr = {
756756
}
757757

758758
OrTest: ast::Expr = {
759-
<e1:AndTest> <location:@L> <e2:("or" AndTest)*> <end_location:@R> => {
759+
<location:@L> <e1:AndTest> <e2:("or" AndTest)*> <end_location:@R> => {
760760
if e2.is_empty() {
761761
e1
762762
} else {
@@ -773,7 +773,7 @@ OrTest: ast::Expr = {
773773
};
774774

775775
AndTest: ast::Expr = {
776-
<e1:NotTest> <location:@L> <e2:("and" NotTest)*> <end_location:@R> => {
776+
<location:@L> <e1:NotTest> <e2:("and" NotTest)*> <end_location:@R> => {
777777
if e2.is_empty() {
778778
e1
779779
} else {

0 commit comments

Comments
 (0)