mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 14:44:17 -05:00
Align MatchCase end location
This commit is contained in:
@@ -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
2963
parser/src/python.rs
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user