2021-09-24 21:13:52 +03:00
|
|
|
# Make sure that quotes inside multiline strings are allowed, including right
|
|
|
|
# after the opening '''/""" and before the closing '''/"""
|
|
|
|
|
|
|
|
lit_one = ''''one quote''''
|
|
|
|
lit_two = '''''two quotes'''''
|
|
|
|
lit_one_space = ''' 'one quote' '''
|
|
|
|
lit_two_space = ''' ''two quotes'' '''
|
|
|
|
|
|
|
|
one = """"one quote""""
|
|
|
|
two = """""two quotes"""""
|
|
|
|
one_space = """ "one quote" """
|
|
|
|
two_space = """ ""two quotes"" """
|
|
|
|
|
|
|
|
mismatch1 = """aaa'''bbb"""
|
|
|
|
mismatch2 = '''aaa"""bbb'''
|
2021-09-30 16:04:21 +03:00
|
|
|
|
|
|
|
lit1 = '\'
|
|
|
|
lit2 = '\\'
|
|
|
|
lit3 = '\tricky\'
|
|
|
|
|
|
|
|
ml_lit1 = '''
|
|
|
|
\'''
|
|
|
|
ml_lit2 = '''\
|
|
|
|
\'''
|
|
|
|
ml_lit3 = '''\
|
|
|
|
tricky\
|
|
|
|
'''
|