Debian Codegraph @

tests/snippets/mojo/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.Whitespace
13 'spam' Name
14 ':' Punctuation
15 '\n ' Text.Whitespace
16 'case' Name
17 ' ' Text.Whitespace
18 'Some' Name
19 '(' Punctuation
20 'x' Name
21 '):' Punctuation
22 '\n ' Text.Whitespace
23 'print' Name.Builtin
24 '(' Punctuation
25 'f' Literal.String.Affix
26 '"' Literal.String.Double
27 'found ' Literal.String.Double
28 '{' Literal.String.Interpol
29 'x' Name
30 '}' Literal.String.Interpol
31 '"' Literal.String.Double
32 ')' Punctuation
33 '\n ' Text.Whitespace
34 'case' Name
35 ' ' Text.Whitespace
36 'None' Keyword.Constant
37 ':' Punctuation
38 '\n ' Text.Whitespace
39 'print' Name.Builtin
40 '(' Punctuation
41 '"' Literal.String.Double
42 'found nothing' Literal.String.Double
43 '"' Literal.String.Double
44 ')' Punctuation
45 '\n ' Text.Whitespace
46 'case' Name
47 ' ' Text.Whitespace
48 '_' Name
49 ':' Punctuation
50 '\n ' Text.Whitespace
51 'assert' Keyword
52 ' ' Text.Whitespace
53 'False' Keyword.Constant
54 '\n' Text.Whitespace