Debian Codegraph @

tests/snippets/toml/strings-eager.txt

raw
1 ---input---
2 foo = "this string should" # not extend into the comment that contains "quotes"
3 bar = 'same with a' # basic 'string'
4 baz = """same with a""" # multiline """basic string"""
5 spam = '''same with a''' # multiline '''literal string'''
6
7 ---tokens---
8 'foo' Name
9 ' ' Text.Whitespace
10 '=' Operator
11 ' ' Text.Whitespace
12 '"' Literal.String.Double
13 'this string should' Literal.String.Double
14 '"' Literal.String.Double
15 ' ' Text.Whitespace
16 '# not extend into the comment that contains "quotes"' Comment.Single
17 '\n' Text.Whitespace
18
19 'bar' Name
20 ' ' Text.Whitespace
21 '=' Operator
22 ' ' Text.Whitespace
23 "'" Literal.String.Single
24 "same with a'" Literal.String.Single
25 ' ' Text.Whitespace
26 "# basic 'string'" Comment.Single
27 '\n' Text.Whitespace
28
29 'baz' Name
30 ' ' Text.Whitespace
31 '=' Operator
32 ' ' Text.Whitespace
33 '"""' Literal.String.Double
34 'same with a' Literal.String.Double
35 '"""' Literal.String.Double
36 ' ' Text.Whitespace
37 '# multiline """basic string"""' Comment.Single
38 '\n' Text.Whitespace
39
40 'spam' Name
41 ' ' Text.Whitespace
42 '=' Operator
43 ' ' Text.Whitespace
44 "'''" Literal.String.Single
45 'same with a' Literal.String.Single
46 "'''" Literal.String.Single
47 ' ' Text.Whitespace
48 "# multiline '''literal string'''" Comment.Single
49 '\n' Text.Whitespace