ruff/crates/ruff_python_parser
Dhruv Manilawala 8020d486f6
Reset FOR_TARGET context for all kinds of parentheses (#11009)
## Summary

This PR fixes a bug in the new parser which involves the parser context
w.r.t. for statement. This is specifically around the `in` keyword which
can be present in the target expression and shouldn't be considered to
be part of the `for` statement header. Ideally it should use a context
which is passed between functions, thus using a call stack to set /
unset a specific variant which will be done in a follow-up PR as it
requires some amount of refactor.

## Test Plan

Add test cases and update the snapshots.
2024-04-18 19:37:50 +05:30
..
resources Reset FOR_TARGET context for all kinds of parentheses (#11009) 2024-04-18 19:37:50 +05:30
src Reset FOR_TARGET context for all kinds of parentheses (#11009) 2024-04-18 19:37:50 +05:30
tests Reset FOR_TARGET context for all kinds of parentheses (#11009) 2024-04-18 19:37:50 +05:30
Cargo.toml Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30
CONTRIBUTING.md Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30