mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-30 23:27:27 +00:00
![]() ## Summary Follows up on https://github.com/astral-sh/ruff/pull/6652#discussion_r1300871033 with some modifications to the `PatternMatchAs` comment handling. Specifically, any comments between the `as` and the end are now formatted as dangling, and we now insert some newlines in the appropriate places. ## Test Plan `cargo test` |
||
---|---|---|
.. | ||
mod.rs | ||
pattern_match_as.rs | ||
pattern_match_class.rs | ||
pattern_match_mapping.rs | ||
pattern_match_or.rs | ||
pattern_match_sequence.rs | ||
pattern_match_singleton.rs | ||
pattern_match_star.rs | ||
pattern_match_value.rs |