-
Notifications
You must be signed in to change notification settings - Fork 630
/
test_soft_kwds.txt
54 lines (53 loc) · 1.37 KB
/
test_soft_kwds.txt
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
47
48
49
50
51
52
53
54
---input---
match spam:
case Some(x):
print(f"found {x}")
case None:
print("found nothing")
case _:
assert False
---tokens---
'match' Keyword
' ' Text.Whitespace
'spam' Name
':' Punctuation
'\n ' Text.Whitespace
'case' Name
' ' Text.Whitespace
'Some' Name
'(' Punctuation
'x' Name
'):' Punctuation
'\n ' Text.Whitespace
'print' Name.Builtin
'(' Punctuation
'f' Literal.String.Affix
'"' Literal.String.Double
'found ' Literal.String.Double
'{' Literal.String.Interpol
'x' Name
'}' Literal.String.Interpol
'"' Literal.String.Double
')' Punctuation
'\n ' Text.Whitespace
'case' Name
' ' Text.Whitespace
'None' Keyword.Constant
':' Punctuation
'\n ' Text.Whitespace
'print' Name.Builtin
'(' Punctuation
'"' Literal.String.Double
'found nothing' Literal.String.Double
'"' Literal.String.Double
')' Punctuation
'\n ' Text.Whitespace
'case' Name
' ' Text.Whitespace
'_' Name
':' Punctuation
'\n ' Text.Whitespace
'assert' Keyword
' ' Text.Whitespace
'False' Keyword.Constant
'\n' Text.Whitespace