Commit bfc688e
committed
Collapse bare ExpectedExpression parse failures to 'invalid syntax'
Mirrors rustpython-vm's vm_new.rs message bucketing for callers (like
Pyre) that depend on rustpython-compiler directly without the vm
crate. Fixes the '<>' outside Barry mode case (CPython says 'invalid
syntax'; rustpython-compiler previously surfaced the raw ruff parser
message 'Expected an expression').1 parent d0baa1c commit bfc688e
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
365 | 378 | | |
366 | 379 | | |
367 | 380 | | |
| |||
0 commit comments