forked from MagicStack/MagicPython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdecorators7.py
56 lines (51 loc) · 4.09 KB
/
decorators7.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
# this is testing trailing whitespace after the decorator
# DO NOT DELETE TRAILING WHITESTAPCE IN THIS FILE
@foo
@foo()
@bar
@bar()
@bar() illegal # legal
@bar():
def baz(): pass
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
this is testing trailing whitespace after the decorator : comment.line.number-sign.python, source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
DO NOT DELETE TRAILING WHITESTAPCE IN THIS FILE : comment.line.number-sign.python, source.python
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
foo : entity.name.function.decorator.python, meta.function.decorator.python, source.python
: meta.function.decorator.python, source.python
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
foo : entity.name.function.decorator.python, meta.function.decorator.python, source.python
( : meta.function.decorator.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function.decorator.python, punctuation.definition.arguments.end.python, source.python
: source.python
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
bar : entity.name.function.decorator.python, meta.function.decorator.python, source.python
: meta.function.decorator.python, source.python
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
bar : entity.name.function.decorator.python, meta.function.decorator.python, source.python
( : meta.function.decorator.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function.decorator.python, punctuation.definition.arguments.end.python, source.python
: source.python
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
bar : entity.name.function.decorator.python, meta.function.decorator.python, source.python
( : meta.function.decorator.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function.decorator.python, punctuation.definition.arguments.end.python, source.python
illegal : invalid.illegal.decorator.python, meta.function.decorator.python, source.python
: source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
legal : comment.line.number-sign.python, source.python
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
bar : entity.name.function.decorator.python, meta.function.decorator.python, source.python
( : meta.function.decorator.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function.decorator.python, punctuation.definition.arguments.end.python, source.python
: : invalid.illegal.decorator.python, meta.function.decorator.python, source.python
: source.python
def : meta.function.python, source.python, storage.type.function.python
: meta.function.python, source.python
baz : 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
pass : keyword.control.flow.python, source.python