Debian Codegraph @

tests/snippets/python/test_soft_kwds.txt

raw
1 ---input---
2 match spam:
3 case Some(x):
4 print(f"found {x}")
5 case None:
6 print("found nothing")
7 case _:
8 assert False
9
10 ---tokens---
11 'match' Keyword
12 ' ' Text
13 'spam' Name
14 ':' Punctuation
15 '\n' Text.Whitespace
16
17 ' ' Text
18 'case' Keyword
19 ' ' Text
20 'Some' Name
21 '(' Punctuation
22 'x' Name
23 ')' Punctuation
24 ':' Punctuation
25 '\n' Text.Whitespace
26
27 ' ' Text
28 'print' Name.Builtin
29 '(' Punctuation
30 'f' Literal.String.Affix
31 '"' Literal.String.Double
32 'found ' Literal.String.Double
33 '{' Literal.String.Interpol
34 'x' Name
35 '}' Literal.String.Interpol
36 '"' Literal.String.Double
37 ')' Punctuation
38 '\n' Text.Whitespace
39
40 ' ' Text
41 'case' Keyword
42 ' ' Text
43 'None' Keyword.Constant
44 ':' Punctuation
45 '\n' Text.Whitespace
46
47 ' ' Text
48 'print' Name.Builtin
49 '(' Punctuation
50 '"' Literal.String.Double
51 'found nothing' Literal.String.Double
52 '"' Literal.String.Double
53 ')' Punctuation
54 '\n' Text.Whitespace
55
56 ' ' Text
57 'case' Keyword
58 ' ' Text.Whitespace
59 '_' Keyword
60 ':' Punctuation
61 '\n' Text.Whitespace
62
63 ' ' Text
64 'assert' Keyword
65 ' ' Text
66 'False' Keyword.Constant
67 '\n' Text.Whitespace