we-like-parsers / cpython

Here we work on integrating pegen into CPython; use branch 'pegen'
https://github.com/gvanrossum/pegen
Other
1 stars 0 forks source link

f-string parser: Fix new lines #166

Closed pablogsal closed 2 years ago

pablogsal commented 2 years ago

Currently, if a new line is in an f-string we produce:

>>> f"\n"
'\\n'
>>>

but this is incorrect. We should produce:

>>> f"\n"
'\n'