-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathmatch6.py
More file actions
53 lines (49 loc) · 2.3 KB
/
match6.py
File metadata and controls
53 lines (49 loc) · 2.3 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
match (foo + bar):
... # cases
match [foo, bar]:
... # cases
match {foo, bar}:
... # cases
match : keyword.control.flow.python, source.python
: source.python
( : punctuation.parenthesis.begin.python, source.python
foo : source.python
: source.python
+ : keyword.operator.arithmetic.python, source.python
: source.python
bar : source.python
) : punctuation.parenthesis.end.python, 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.list.begin.python, source.python
foo : source.python
, : punctuation.separator.element.python, source.python
: source.python
bar : source.python
] : punctuation.definition.list.end.python, 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.dict.begin.python, source.python
foo : source.python
, : punctuation.separator.element.python, source.python
: source.python
bar : source.python
} : punctuation.definition.dict.end.python, 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