mirror of
https://github.com/python/cpython.git
synced 2025-11-17 01:25:57 +00:00
There are two errors that this commit fixes:
* The parser was not correctly computing the offset and the string
source for E_LINECONT errors due to the incorrect usage of strtok().
* The parser was not correctly unwinding the call stack when a tokenizer
exception happened in rules involving optionals ('?', [...]) as we
always make them return valid results by using the comma operator. We
need to check first if we don't have an error before continuing.
|
||
|---|---|---|
| .. | ||
| data | ||
| peg_extension | ||
| pegen | ||
| scripts | ||
| .clang-format | ||
| .gitignore | ||
| Makefile | ||
| mypy.ini | ||
| pyproject.toml | ||
| requirements.pip | ||