forked from MagicStack/MagicPython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdecorators8.py
21 lines (18 loc) · 1.46 KB
/
decorators8.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@deco().abc # SyntaxError: invalid syntax
def foo(): pass
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
deco : 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
.abc : invalid.illegal.decorator.python, meta.function.decorator.python, source.python
: source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
SyntaxError: invalid syntax : 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, 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