Fix end location for elif blocks

Since we parse an `elif:` block as an `If` node, its location should
include its `orelse` node like it would for an `if:` block.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2023-01-17 22:14:24 -05:00
parent b26365b215
commit 6dba8430be
2 changed files with 3 additions and 3 deletions

View file

@ -79,8 +79,8 @@ expression: parse_ast
},
end_location: Some(
Location {
row: 2,
column: 10,
row: 3,
column: 8,
},
),
custom: (),