Debian Codegraph @

tests/snippets/python/test_fstring_01b.txt

raw
1 ---input---
2 f"My name is {name}, my age next year is {age+1}, my anniversary is {anniversary:%A, %B %d, %Y}."
3
4 ---tokens---
5 'f' Literal.String.Affix
6 '"' Literal.String.Double
7 'My name is ' Literal.String.Double
8 '{' Literal.String.Interpol
9 'name' Name
10 '}' Literal.String.Interpol
11 ', my age next year is ' Literal.String.Double
12 '{' Literal.String.Interpol
13 'age' Name
14 '+' Operator
15 '1' Literal.Number.Integer
16 '}' Literal.String.Interpol
17 ', my anniversary is ' Literal.String.Double
18 '{' Literal.String.Interpol
19 'anniversary' Name
20 ':' Literal.String.Interpol
21 '%A, %B %d, %Y' Literal.String.Double
22 '}' Literal.String.Interpol
23 '.' Literal.String.Double
24 '"' Literal.String.Double
25 '\n' Text.Whitespace