bpo-42997: Improve error message for missing : before suites by pablogsal · Pull Request #24292 · python/cpython
pablogsal
marked this pull request as ready for review
* 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.
ncoghlan added a commit to ncoghlan/cpython that referenced this pull request
Feb 8, 2021…H-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.
adorilson added a commit to adorilson/cpython that referenced this pull request
Mar 13, 2021…H-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.
Harry-Lees added a commit to Harry-Lees/cpython that referenced this pull request
Mar 28, 2021…H-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.