ruff/crates/ruff_python_formatter/src/other
Charlie Marsh 2729c4cacd
Skip over parentheses when detecting in keyword (#8054)
## Summary

Given an expression like `[x for (x) in y]`, we weren't skipping over
parentheses when searching for the `in` between `(x)` and `y`.

Closes https://github.com/astral-sh/ruff/issues/8053.
2023-10-18 19:13:58 -04:00
..
alias.rs Avoid printing continuations within import identifiers (#7744) 2023-10-02 09:51:07 -04:00
arguments.rs Don't reorder parameters in function calls (#7268) 2023-09-13 09:01:49 +00:00
commas.rs Improve with statement comment handling and expression breaking (#6621) 2023-08-18 03:30:38 +00:00
comprehension.rs Skip over parentheses when detecting in keyword (#8054) 2023-10-18 19:13:58 -04:00
decorator.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
elif_else_clause.rs Use the formatter prelude in more files (#6882) 2023-08-25 16:51:07 -04:00
except_handler_except_handler.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
identifier.rs Remove spaces from import statements (#7859) 2023-10-11 11:35:41 +00:00
keyword.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
match_case.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
mod.rs Improve with statement comment handling and expression breaking (#6621) 2023-08-18 03:30:38 +00:00
parameter.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
parameter_with_default.rs Format comment before parameter default correctly (#7870) 2023-10-12 17:50:12 +02:00
parameters.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
with_item.rs Prefer preserving WithItem parentheses (#7694) 2023-09-28 14:42:40 +01:00