ruff/crates/ruff_python_formatter/src/pattern
Charlie Marsh 1e6d1182bf
Improve comment handling around PatternMatchAs (#6797)
## 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`
2023-08-23 04:48:20 +00:00
..
mod.rs Add formatting for MatchCase (#6360) 2023-08-11 19:20:25 +05:30
pattern_match_as.rs Improve comment handling around PatternMatchAs (#6797) 2023-08-23 04:48:20 +00:00
pattern_match_class.rs Call pattern formatting (#6594) 2023-08-16 08:31:25 +05:30
pattern_match_mapping.rs Call pattern formatting (#6594) 2023-08-16 08:31:25 +05:30
pattern_match_or.rs Call pattern formatting (#6594) 2023-08-16 08:31:25 +05:30
pattern_match_sequence.rs Format PatternMatchSequence (#6676) 2023-08-23 00:44:33 +00:00
pattern_match_singleton.rs Format PatternMatchSingleton (#6741) 2023-08-22 08:23:47 +02:00
pattern_match_star.rs Call pattern formatting (#6594) 2023-08-16 08:31:25 +05:30
pattern_match_value.rs Call pattern formatting (#6594) 2023-08-16 08:31:25 +05:30