summaryrefslogtreecommitdiffstats
path: root/tests/snippets/python/test_fstring_15b.txt
blob: 7b5307c150738a21e40f7a2827c1de61bac67548 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---input---
"a" "b" f"{x}" "{c}" f"str<{y:^4}>" "d" "e"

---tokens---
'"'           Literal.String.Double
'a'           Literal.String.Double
'"'           Literal.String.Double
' '           Text
'"'           Literal.String.Double
'b'           Literal.String.Double
'"'           Literal.String.Double
' '           Text
'f'           Literal.String.Affix
'"'           Literal.String.Double
'{'           Literal.String.Interpol
'x'           Name
'}'           Literal.String.Interpol
'"'           Literal.String.Double
' '           Text
'"'           Literal.String.Double
'{c}'         Literal.String.Interpol
'"'           Literal.String.Double
' '           Text
'f'           Literal.String.Affix
'"'           Literal.String.Double
'str<'        Literal.String.Double
'{'           Literal.String.Interpol
'y'           Name
':'           Literal.String.Interpol
'^4'          Literal.String.Double
'}'           Literal.String.Interpol
'>'           Literal.String.Double
'"'           Literal.String.Double
' '           Text
'"'           Literal.String.Double
'd'           Literal.String.Double
'"'           Literal.String.Double
' '           Text
'"'           Literal.String.Double
'e'           Literal.String.Double
'"'           Literal.String.Double
'\n'          Text.Whitespace