-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathmatch7.py
More file actions
97 lines (93 loc) · 5.4 KB
/
match7.py
File metadata and controls
97 lines (93 loc) · 5.4 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
match 'prefix' + foo:
... # cases
match "prefix" + foo:
... # cases
match f'prefix{foo}':
... # cases
match f"prefix{foo}":
... # cases
match -foo:
... # cases
match not foo:
... # cases
match : keyword.control.flow.python, source.python
: source.python
' : punctuation.definition.string.begin.python, source.python, string.quoted.single.python
prefix : source.python, string.quoted.single.python
' : punctuation.definition.string.end.python, source.python, string.quoted.single.python
: source.python
+ : keyword.operator.arithmetic.python, source.python
: source.python
foo : source.python
: : punctuation.separator.colon.python, source.python
: source.python
... : constant.other.ellipsis.python, source.python
: source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
cases : comment.line.number-sign.python, source.python
match : keyword.control.flow.python, source.python
: source.python
" : punctuation.definition.string.begin.python, source.python, string.quoted.single.python
prefix : source.python, string.quoted.single.python
" : punctuation.definition.string.end.python, source.python, string.quoted.single.python
: source.python
+ : keyword.operator.arithmetic.python, source.python
: source.python
foo : source.python
: : punctuation.separator.colon.python, source.python
: source.python
... : constant.other.ellipsis.python, source.python
: source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
cases : comment.line.number-sign.python, source.python
match : keyword.control.flow.python, source.python
: source.python
f : meta.fstring.python, source.python, storage.type.string.python, string.interpolated.python, string.quoted.single.python
' : meta.fstring.python, punctuation.definition.string.begin.python, source.python, string.interpolated.python, string.quoted.single.python
prefix : meta.fstring.python, source.python, string.interpolated.python, string.quoted.single.python
{ : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
foo : meta.fstring.python, source.python
} : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
' : meta.fstring.python, punctuation.definition.string.end.python, source.python, string.interpolated.python, string.quoted.single.python
: : punctuation.separator.colon.python, source.python
: source.python
... : constant.other.ellipsis.python, source.python
: source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
cases : comment.line.number-sign.python, source.python
match : keyword.control.flow.python, source.python
: source.python
f : meta.fstring.python, source.python, storage.type.string.python, string.interpolated.python, string.quoted.single.python
" : meta.fstring.python, punctuation.definition.string.begin.python, source.python, string.interpolated.python, string.quoted.single.python
prefix : meta.fstring.python, source.python, string.interpolated.python, string.quoted.single.python
{ : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
foo : meta.fstring.python, source.python
} : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
" : meta.fstring.python, punctuation.definition.string.end.python, source.python, string.interpolated.python, string.quoted.single.python
: : punctuation.separator.colon.python, source.python
: source.python
... : constant.other.ellipsis.python, source.python
: source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
cases : comment.line.number-sign.python, source.python
match : keyword.control.flow.python, source.python
: source.python
- : keyword.operator.arithmetic.python, source.python
foo : source.python
: : punctuation.separator.colon.python, source.python
: source.python
... : constant.other.ellipsis.python, source.python
: source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
cases : comment.line.number-sign.python, source.python
match : keyword.control.flow.python, source.python
: source.python
not : keyword.operator.logical.python, source.python
: source.python
foo : source.python
: : punctuation.separator.colon.python, source.python
: source.python
... : constant.other.ellipsis.python, source.python
: source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
cases : comment.line.number-sign.python, source.python