Files
ruff/crates/ruff_python_formatter/src/format/mod.rs
Charlie Marsh f967f344fc Add support for basic Constant::Str formatting (#3173)
This PR enables us to apply the proper quotation marks, including support for escapes. There are some significant TODOs, especially around implicit concatenations like:

```py
(
  "abc"
  "def"
)
```

Which are represented as a single AST node, which requires us to tokenize _within_ the formatter to identify all the individual string parts.
2023-02-23 16:23:10 +00:00

16 lines
201 B
Rust

mod alias;
mod arg;
mod arguments;
mod boolop;
pub mod builders;
mod cmpop;
mod comprehension;
mod excepthandler;
mod expr;
mod helpers;
mod operator;
mod stmt;
mod strings;
mod unaryop;
mod withitem;