PY-8989 More robust handling of multiline glued strings with various prefixes and quote types

This commit is contained in:
Mikhail Golubev
2014-12-16 13:11:11 +03:00
parent adea2929d9
commit c6662fcd15
6 changed files with 94 additions and 70 deletions
@@ -0,0 +1 @@
s = ""
@@ -1,3 +1,6 @@
s = ("foo\n"
"barbaz\n"
"quux\n")
s = (u"foo\n"
u"bar"
r'baz"'
"\n"
"quux\n"
'')
@@ -0,0 +1 @@
s = """<caret>"""
@@ -1,4 +1,4 @@
s = ("""<caret>foo
bar""" '''baz''' """
s = (u"""foo<caret>
bar""" r'baz"' """
quux
""")
""" '')