ruff/crates/ruff_python_parser/src/parser
Dylan c1eaf6ff72
Modify parsing of raise with cause when exception is absent (#15049)
When confronted with `raise from exc` the parser will now create a
`StmtRaise` that has `None` for the exception and `exc` for the cause.

Before, the parser created a `StmtRaise` with `from` for the exception,
no cause, and a spurious expression `exc` afterwards.
2024-12-19 13:36:32 +00:00
..
snapshots Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
expression.rs Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
helpers.rs Refactor binary expression parsing (#11073) 2024-04-23 04:42:40 +00:00
mod.rs Move token and error structs into related modules (#11957) 2024-06-21 10:07:19 +00:00
pattern.rs Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00
progress.rs Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30
recovery.rs Use `CompactString` for `Identifier` (#12101) 2024-07-01 10:06:02 +02:00
statement.rs Modify parsing of raise with cause when exception is absent (#15049) 2024-12-19 13:36:32 +00:00
tests.rs Maintain synchronicity between the lexer and the parser (#11457) 2024-06-03 18:23:50 +05:30