Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[parser] Multi line group location ending #10436
I think the location end is incorrect for multiline groups. If the group starts with the first non-whitespace after the parenthesis, then the end should be after the last non-whitespace but before the parenthesis. Right now it seems to be after the character before the closing paren.
a = ( b, c )
Update location tracking to ignore the trailing whitespace when creating the location for the group.
Alternatively update the start to span the actual parenthesised area (in that case probably before and after the parens, rather than inside).
Hey @pvdz! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.