mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-04 10:49:55 +00:00
Align MatchCase
end location
This commit is contained in:
parent
ae3a477c97
commit
4a2c4aad0b
2 changed files with 1469 additions and 1497 deletions
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue