Files
openide/python/testData/psi/FStringTextTokenMerging.py
Mikhail Golubev ed4b1332dc PY-32864 Automatically merge f-string text tokens
It not only makes AST of f-string nodes simpler and more obvious to work with,
but, in general, is also better supported by various platform functionality that
assumes that raw text parts of string literals are not broken into multiple
elements.

GitOrigin-RevId: 931d1ea4c09d145e763aed839dcb4acbb3e43ec7
2020-08-17 11:12:03 +00:00

5 lines
62 B
Python

s = f"""foo""bar\"\{rf'green"eggs{42:for"mat}'}\
baz
quux
"""