Skip to content

Skip over parentheses when detecting in keyword#8054

Merged
charliermarsh merged 1 commit intomainfrom
charlie/if
Oct 18, 2023
Merged

Skip over parentheses when detecting in keyword#8054
charliermarsh merged 1 commit intomainfrom
charlie/if

Conversation

@charliermarsh
Copy link
Member

Summary

Given an expression like [x for (x) in y], we weren't skipping over parentheses when searching for the in between (x) and y.

Closes #8053.

@charliermarsh charliermarsh requested a review from konstin October 18, 2023 20:38
@charliermarsh charliermarsh added bug Something isn't working formatter Related to the formatter labels Oct 18, 2023
@charliermarsh charliermarsh merged commit 2729c4c into main Oct 18, 2023
@charliermarsh charliermarsh deleted the charlie/if branch October 18, 2023 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working formatter Related to the formatter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] [formatter] parenthesized single list comp var chokes formatter

2 participants