0
0
mirror of https://github.com/python/cpython.git synced 2024-11-25 01:20:47 +01:00
cpython/Parser
Lysandros Nikolaou 896f4cf63f
bpo-40847: Consider a line with only a LINECONT a blank line (GH-20769)
A line with only a line continuation character should be considered
a blank line at tokenizer level so that only a single NEWLINE token
gets emitted. The old parser was working around the issue, but the
new parser threw a `SyntaxError` for valid input. For example,
an empty line following a line continuation character was interpreted
as a `SyntaxError`.

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-06-11 00:56:08 +01:00
..
pegen Raise specialised syntax error for invalid lambda parameters (GH-20776) 2020-06-10 14:07:06 +01:00
pgen
acceler.c
asdl_c.py bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types (reverts GH-19414) (GH-20264) 2020-05-27 02:03:38 -07:00
asdl.py bpo-40528: Improve and clear several aspects of the ASDL definition code for the AST (GH-19952) 2020-05-06 15:29:32 +01:00
grammar1.c
listnode.c bpo-39465: Use _PyInterpreterState_GET() (GH-20788) 2020-06-10 20:08:26 +02:00
myreadline.c bpo-40826: Add _PyOS_InterruptOccurred(tstate) function (GH-20599) 2020-06-03 14:39:59 +02:00
node.c bpo-40502: Initialize n->n_col_offset (GH-19988) 2020-05-08 17:58:28 -03:00
parser.c
parser.h
parsetok.c
Python.asdl bpo-40528: Improve and clear several aspects of the ASDL definition code for the AST (GH-19952) 2020-05-06 15:29:32 +01:00
token.c
tokenizer.c bpo-40847: Consider a line with only a LINECONT a blank line (GH-20769) 2020-06-11 00:56:08 +01:00
tokenizer.h