Debian Codegraph @

internal/toml-test/tests/valid/string/multiline-quotes.toml

raw
1 # Make sure that quotes inside multiline strings are allowed, including right
2 # after the opening '''/""" and before the closing '''/"""
3
4 lit_one = ''''one quote''''
5 lit_two = '''''two quotes'''''
6 lit_one_space = ''' 'one quote' '''
7 lit_two_space = ''' ''two quotes'' '''
8
9 one = """"one quote""""
10 two = """""two quotes"""""
11 one_space = """ "one quote" """
12 two_space = """ ""two quotes"" """
13
14 mismatch1 = """aaa'''bbb"""
15 mismatch2 = '''aaa"""bbb'''
16
17 # Three opening """, then one escaped ", then two "" (allowed), and then three
18 # closing """
19 escaped = """lol\""""""
20
21 five-quotes = """
22 Closing with five quotes
23 """""
24 four-quotes = """
25 Closing with four quotes
26 """"