We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MatchCase
1 parent ae3a477 commit 4a2c4aaCopy full SHA for 4a2c4aa
parser/src/python.lalrpop
@@ -387,7 +387,8 @@ MatchStatement: ast::Stmt = {
387
}
388
389
MatchCase: ast::MatchCase = {
390
- <start:@L> "case" <pattern:Patterns> <guard:(Guard)?> ":" <body:Suite> <end:@R> => {
+ <start:@L> "case" <pattern:Patterns> <guard:(Guard)?> ":" <body:Suite> => {
391
+ let end = body.last().unwrap().end();
392
ast::MatchCase {
393
pattern,
394
guard: guard.map(Box::new),
0 commit comments