File: test_fstring_19b.txt

package info (click to toggle)
pygments 2.14.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,496 kB
  • sloc: python: 96,379; javascript: 238; makefile: 191; sh: 80; lisp: 74
file content (46 lines) | stat: -rw-r--r-- 1,294 bytes parent folder | download | duplicates (2)
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
43
44
45
46
---input---
f"mapping is { {a:b for (a, b) in ((1, 2), (3, 4))} }"

---tokens---
'f'           Literal.String.Affix
'"'           Literal.String.Double
'mapping is ' Literal.String.Double
'{'           Literal.String.Interpol
' '           Text.Whitespace
'{'           Punctuation
'a'           Name
':'           Punctuation
'b'           Name
' '           Text.Whitespace
'for'         Keyword
' '           Text.Whitespace
'('           Punctuation
'a'           Name
','           Punctuation
' '           Text.Whitespace
'b'           Name
')'           Punctuation
' '           Text.Whitespace
'in'          Operator.Word
' '           Text.Whitespace
'('           Punctuation
'('           Punctuation
'1'           Literal.Number.Integer
','           Punctuation
' '           Text.Whitespace
'2'           Literal.Number.Integer
')'           Punctuation
','           Punctuation
' '           Text.Whitespace
'('           Punctuation
'3'           Literal.Number.Integer
','           Punctuation
' '           Text.Whitespace
'4'           Literal.Number.Integer
')'           Punctuation
')'           Punctuation
'}'           Punctuation
' '           Text.Whitespace
'}'           Literal.String.Interpol
'"'           Literal.String.Double
'\n'          Text.Whitespace