ruff/crates/ruff_python_parser/src
Charlie Marsh 48e04cc2c8
Add row and column numbers to formatted parse errors (#9321)
## Summary

We now render parse errors in the formatter identically to those in the
linter, e.g.:

```
❯ cargo run -p ruff_cli -- format foo.py
error: Failed to parse foo.py:1:17: Unexpected token '='
```

Closes https://github.com/astral-sh/ruff/issues/8338.

Closes https://github.com/astral-sh/ruff/issues/9311.
2023-12-31 07:10:45 -05:00
..
lexer release: switch to Cargo's default (#9031) 2023-12-15 08:19:35 -05:00
snapshots New AST nodes for f-string elements (#8835) 2023-12-07 10:28:05 -06:00
context.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
function.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
invalid.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
lexer.rs Use Display for formatter parse errors (#9316) 2023-12-29 22:26:57 +00:00
lib.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
parser.rs Add row and column numbers to formatted parse errors (#9321) 2023-12-31 07:10:45 -05:00
python.lalrpop New AST nodes for f-string elements (#8835) 2023-12-07 10:28:05 -06:00
python.rs New AST nodes for f-string elements (#8835) 2023-12-07 10:28:05 -06:00
soft_keywords.rs Support type alias statements in simple statement positions (#8916) 2023-11-30 19:15:19 +00:00
string.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
token.rs Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
typing.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00