Skip to content

Commit adec9e9

Browse files
committed
Fix location
1 parent 39bed0d commit adec9e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/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)