ruff/crates/ruff_formatter/src
konsti 63ed7a31e8
Add message to formatter SyntaxError (#5881)
**Summary** Add a static string error message to the formatter syntax
error so we can disambiguate where the syntax error came from

**Test Plan** No fixed tests, we don't expect this to occur, but it
helped with transformers syntax error debugging:

```
Error: Failed to format node

Caused by:
    syntax error: slice first colon token was not a colon
```
2023-07-19 17:15:26 +02:00
..
format_element Remove mode from BestFitting 2023-07-11 14:19:26 +02:00
printer Remove mode from BestFitting 2023-07-11 14:19:26 +02:00
arguments.rs Run nightly Clippy over the Ruff repo (#5670) 2023-07-10 23:44:38 -04:00
buffer.rs Run rustfmt on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
builders.rs Remove mode from BestFitting 2023-07-11 14:19:26 +02:00
diagnostics.rs Add message to formatter SyntaxError (#5881) 2023-07-19 17:15:26 +02:00
format_element.rs Remove mode from BestFitting 2023-07-11 14:19:26 +02:00
format_extensions.rs Fix typos found by codespell (#5607) 2023-07-08 12:33:18 +02:00
formatter.rs Remove dependency on ruff_rowan (#2875) 2023-02-15 03:54:08 +00:00
group_id.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
lib.rs playground: Add AST/Tokens/Formatter panels (#5859) 2023-07-19 14:46:08 +00:00
macros.rs Add BestFittingMode (#5184) 2023-06-20 18:16:01 +02:00
prelude.rs Remove dependency on ruff_rowan (#2875) 2023-02-15 03:54:08 +00:00
source_code.rs Leading, Dangling, and Trailing comments formatting (#4785) 2023-06-02 09:26:36 +02:00