forked from MagicStack/MagicPython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdecl14.py
85 lines (80 loc) · 6.59 KB
/
decl14.py
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
# testing comments in function definition
def foo( # before args
a=42, # between
# args
b= # in args
24,
d # before '='
=99,
e
) # incomplete definition, missing COLON, you're probably typing it
# pre docstring
'''Docstring'''
# post docstring
def bar(): return 1
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
testing comments in function definition : comment.line.number-sign.python, source.python
def : meta.function.python, source.python, storage.type.function.python
: meta.function.python, source.python
foo : entity.name.function.python, meta.function.python, source.python
( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python
: meta.function.parameters.python, meta.function.python, source.python
# : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, punctuation.definition.comment.python, source.python
before args : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, source.python
: meta.function.parameters.python, meta.function.python, source.python
a : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python
= : keyword.operator.python, meta.function.parameters.python, meta.function.python, source.python
42 : constant.numeric.dec.python, meta.function.parameters.python, meta.function.python, source.python
, : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.python, source.python
: meta.function.parameters.python, meta.function.python, source.python
# : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, punctuation.definition.comment.python, source.python
between : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, source.python
: meta.function.parameters.python, meta.function.python, source.python
# : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, punctuation.definition.comment.python, source.python
args : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, source.python
: meta.function.parameters.python, meta.function.python, source.python
b : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python
= : keyword.operator.python, meta.function.parameters.python, meta.function.python, source.python
: meta.function.parameters.python, meta.function.python, source.python
# : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, punctuation.definition.comment.python, source.python
in args : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, source.python
: meta.function.parameters.python, meta.function.python, source.python
24 : constant.numeric.dec.python, meta.function.parameters.python, meta.function.python, source.python
, : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.python, source.python
: meta.function.parameters.python, meta.function.python, source.python
d : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python
: meta.function.parameters.python, meta.function.python, source.python
# : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, punctuation.definition.comment.python, source.python
before '=' : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, source.python
: meta.function.parameters.python, meta.function.python, source.python
= : keyword.operator.python, meta.function.parameters.python, meta.function.python, source.python
99 : constant.numeric.dec.python, meta.function.parameters.python, meta.function.python, source.python
, : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.python, source.python
: meta.function.parameters.python, meta.function.python, source.python
e : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python
: meta.function.parameters.python, meta.function.python, source.python
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
: meta.function.python, source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
incomplete definition, missing COLON, you're probably typing it : comment.line.number-sign.python, source.python
: source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
pre docstring : comment.line.number-sign.python, source.python
: source.python
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.multi.python
Docstring : source.python, string.quoted.docstring.multi.python
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.multi.python
: source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
post docstring : comment.line.number-sign.python, source.python
: source.python
def : meta.function.python, source.python, storage.type.function.python
: meta.function.python, source.python
bar : entity.name.function.python, meta.function.python, source.python
( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
: : meta.function.python, punctuation.section.function.begin.python, source.python
: source.python
return : keyword.control.flow.python, source.python
: source.python
1 : constant.numeric.dec.python, source.python