mirror of
https://github.com/python/cpython.git
synced 2024-12-15 21:04:00 +08:00
896f4cf63f
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> |
||
---|---|---|
.. | ||
pegen | ||
pgen | ||
acceler.c | ||
asdl_c.py | ||
asdl.py | ||
grammar1.c | ||
listnode.c | ||
myreadline.c | ||
node.c | ||
parser.c | ||
parser.h | ||
parsetok.c | ||
Python.asdl | ||
token.c | ||
tokenizer.c | ||
tokenizer.h |