SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

bpo-42997: Improve error message for missing : before suites (GH-24292)

* Add to the peg generator a new directive ('&&') that allows to expect
  a token and hard fail the parsing if the token is not found. This
  allows to quickly emmit syntax errors for missing tokens.

* Use the new grammar element to hard-fail if the ':' is missing before
  suites.
P
Pablo Galindo committed
58fb156edda1a0e924a38bfed494bd06cb09c9a3
Parent: 802b645
Committed by GitHub <noreply@github.com> on 2/2/2021, 7:54:22 PM