mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Add tokenizer support and tests for u'', U"", uR'', Ur"", etc.
This commit is contained in:
parent
534c60f9ab
commit
1ff08b1243
3 changed files with 460 additions and 374 deletions
|
@ -110,6 +110,20 @@ y = r"""foo
|
|||
bar \\ baz
|
||||
""" + R'''spam
|
||||
'''
|
||||
x = u'abc' + U'ABC'
|
||||
y = u"abc" + U"ABC"
|
||||
x = ur'abc' + Ur'ABC' + uR'ABC' + UR'ABC'
|
||||
y = ur"abc" + Ur"ABC" + uR"ABC" + UR"ABC"
|
||||
x = ur'\\' + UR'\\'
|
||||
x = ur'\'' + ''
|
||||
y = ur'''
|
||||
foo bar \\
|
||||
baz''' + UR'''
|
||||
foo'''
|
||||
y = Ur"""foo
|
||||
bar \\ baz
|
||||
""" + uR'''spam
|
||||
'''
|
||||
|
||||
# Indentation
|
||||
if 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue