]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40334: Set error_indicator in _PyPegen_raise_error (GH-19887)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Mon, 4 May 2020 00:20:09 +0000 (03:20 +0300)
committerGitHub <noreply@github.com>
Mon, 4 May 2020 00:20:09 +0000 (01:20 +0100)
commit7f06af684a1882fdb19d20650825948b1d7996e5
tree6106d2c0d2aef7ca76ac522f313a9f54006e97bf
parentad9eaeab74b680830dbefc18e8fe3dec4677a21b
bpo-40334: Set error_indicator in _PyPegen_raise_error (GH-19887)

Due to PyErr_Occurred not being called at the beginning of each rule, we need to set the error indicator, so that rules do not get expanded after an exception has been thrown
Parser/pegen/pegen.c