Align MatchCase end location

This commit is contained in:
Micha Reiser 2023-05-30 17:27:15 +02:00
parent ae3a477c97
commit 4a2c4aad0b
No known key found for this signature in database
2 changed files with 1469 additions and 1497 deletions

View file

@ -387,7 +387,8 @@ MatchStatement: ast::Stmt = {
}
MatchCase: ast::MatchCase = {
<start:@L> "case" <pattern:Patterns> <guard:(Guard)?> ":" <body:Suite> <end:@R> => {
<start:@L> "case" <pattern:Patterns> <guard:(Guard)?> ":" <body:Suite> => {
let end = body.last().unwrap().end();
ast::MatchCase {
pattern,
guard: guard.map(Box::new),

2963
parser/src/python.rs generated

File diff suppressed because it is too large Load diff