ruff/crates/ruff_python_parser
Dhruv Manilawala 9bb23b0a38
Expect indented case block instead of match stmt (#11033)
## Summary

This PR adds a new `Clause::Case` and uses it to parse the body of a
`case` block. Earlier, it was using `Match` which would give an
incorrect error message like:

```
  |
1 | match subject:
2 |     case 1:
3 |     case 2: ...
  |     ^^^^ Syntax Error: Expected an indented block after `match` statement
  |
```

## Test Plan

Add test case and update the snapshot.
2024-04-19 16:46:15 +05:30
..
resources Expect indented case block instead of match stmt (#11033) 2024-04-19 16:46:15 +05:30
src Expect indented case block instead of match stmt (#11033) 2024-04-19 16:46:15 +05:30
tests Expect indented case block instead of match stmt (#11033) 2024-04-19 16:46:15 +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