Added vscode settings

This commit is contained in:
Kristofers Solo
2022-04-28 20:54:44 +03:00
parent 245c3ca779
commit 837a479d82
25004 changed files with 2499800 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
class Foo -> None: pass
class : source.python, storage.type.class.python
: source.python
Foo : source.python
: source.python
-> : invalid.illegal.annotation.python, source.python
: source.python
None : constant.language.python, source.python
: : punctuation.separator.colon.python, source.python
: source.python
pass : keyword.control.flow.python, source.python

View File

@@ -0,0 +1,30 @@
class Foo(Bar(q=1) (w=2) (e=3)): pass
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
Foo : entity.name.type.class.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
Bar : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, meta.function-call.python, source.python
( : meta.class.inheritance.python, meta.class.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
q : meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, source.python
1 : constant.numeric.dec.python, meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, source.python
( : meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
w : meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, source.python
2 : constant.numeric.dec.python, meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, source.python
( : meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
e : meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, source.python
3 : constant.numeric.dec.python, meta.class.inheritance.python, meta.class.python, meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.class.inheritance.python, meta.class.python, meta.function-call.python, punctuation.definition.arguments.end.python, source.python
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python

View File

@@ -0,0 +1,80 @@
class F:
def __init__(self, a, b=1):
self.a = a
self.b = b
print(self)
self()
a.self = 1
a.self.bar = 2
self[123]
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
F : entity.name.type.class.python, meta.class.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: meta.function.python, source.python
def : meta.function.python, source.python, storage.type.function.python
: meta.function.python, source.python
__init__ : meta.function.python, source.python, support.function.magic.python
( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python
self : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python, variable.parameter.function.language.special.self.python
, : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.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
, : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.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
1 : constant.numeric.dec.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, punctuation.section.function.begin.python, source.python
: source.python
self : source.python, variable.language.special.self.python
. : punctuation.separator.period.python, source.python
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
a : source.python
: source.python
self : source.python, variable.language.special.self.python
. : punctuation.separator.period.python, source.python
b : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
b : source.python
: source.python
print : meta.function-call.python, source.python, support.function.builtin.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
self : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.language.special.self.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: source.python
self : meta.function-call.python, source.python, variable.language.special.self.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: source.python
a : source.python
. : punctuation.separator.period.python, source.python
self : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
1 : constant.numeric.dec.python, source.python
: source.python
a : source.python
. : punctuation.separator.period.python, source.python
self : source.python
. : punctuation.separator.period.python, source.python
bar : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
2 : constant.numeric.dec.python, source.python
: source.python
self : meta.item-access.python, source.python, variable.language.special.self.python
[ : meta.item-access.python, punctuation.definition.arguments.begin.python, source.python
123 : constant.numeric.dec.python, meta.item-access.arguments.python, meta.item-access.python, source.python
] : meta.item-access.python, punctuation.definition.arguments.end.python, source.python

View File

@@ -0,0 +1,87 @@
class F:
@classmethod
def meth(cls, a, b=1):
cls.a = a
cls.b = b
print(cls)
cls()
cls + 1
a.cls = 1
a.cls.__name__
cls[123]
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
F : entity.name.type.class.python, meta.class.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: meta.function.decorator.python, source.python
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
classmethod : meta.function.decorator.python, source.python, support.type.python
: meta.function.python, source.python
def : meta.function.python, source.python, storage.type.function.python
: meta.function.python, source.python
meth : entity.name.function.python, meta.function.python, source.python
( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python
cls : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python, variable.parameter.function.language.special.cls.python
, : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.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
, : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.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
1 : constant.numeric.dec.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, punctuation.section.function.begin.python, source.python
: source.python
cls : source.python, variable.language.special.cls.python
. : punctuation.separator.period.python, source.python
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
a : source.python
: source.python
cls : source.python, variable.language.special.cls.python
. : punctuation.separator.period.python, source.python
b : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
b : source.python
: source.python
print : meta.function-call.python, source.python, support.function.builtin.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
cls : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.language.special.cls.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: source.python
cls : meta.function-call.python, source.python, variable.language.special.cls.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: source.python
cls : source.python, variable.language.special.cls.python
: source.python
+ : keyword.operator.arithmetic.python, source.python
: source.python
1 : constant.numeric.dec.python, source.python
: source.python
a : source.python
. : punctuation.separator.period.python, source.python
cls : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
1 : constant.numeric.dec.python, source.python
: source.python
a : source.python
. : punctuation.separator.period.python, source.python
cls : source.python
. : punctuation.separator.period.python, source.python
__name__ : source.python, support.variable.magic.python
: source.python
cls : meta.item-access.python, source.python, variable.language.special.cls.python
[ : meta.item-access.python, punctuation.definition.arguments.begin.python, source.python
123 : constant.numeric.dec.python, meta.item-access.arguments.python, meta.item-access.python, source.python
] : meta.item-access.python, punctuation.definition.arguments.end.python, source.python

View File

@@ -0,0 +1,18 @@
class A(*a, **b): pass
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
A : entity.name.type.class.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
* : keyword.operator.unpacking.arguments.python, meta.class.inheritance.python, meta.class.python, source.python
a : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
** : keyword.operator.unpacking.arguments.python, meta.class.inheritance.python, meta.class.python, source.python
b : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python

View File

@@ -0,0 +1,34 @@
class F(f.Exception, f.type, Exception, Exception.a, b=Exception):
pass
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
F : entity.name.type.class.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
f : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
. : meta.class.inheritance.python, meta.class.python, punctuation.separator.period.python, source.python
Exception : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
f : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
. : meta.class.inheritance.python, meta.class.python, punctuation.separator.period.python, source.python
type : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
Exception : meta.class.inheritance.python, meta.class.python, source.python, support.type.exception.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
Exception : meta.class.inheritance.python, meta.class.python, source.python, support.type.exception.python
. : meta.class.inheritance.python, meta.class.python, punctuation.separator.period.python, source.python
a : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
b : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python, variable.parameter.class.python
= : keyword.operator.assignment.python, meta.class.inheritance.python, meta.class.python, source.python
Exception : meta.class.inheritance.python, meta.class.python, source.python, support.type.exception.python
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python

View File

@@ -0,0 +1,19 @@
class Spam(Foo, from==12):
pass
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
Spam : entity.name.type.class.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
Foo : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
from : keyword.control.flow.python, meta.class.inheritance.python, meta.class.python, source.python
== : keyword.operator.comparison.python, meta.class.inheritance.python, meta.class.python, source.python
12 : constant.numeric.dec.python, meta.class.inheritance.python, meta.class.python, source.python
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python

View File

@@ -0,0 +1,26 @@
class Foo(Bar, str, type=12, metaclass=FooMeta): pass
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
Foo : entity.name.type.class.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
Bar : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
str : meta.class.inheritance.python, meta.class.python, source.python, support.type.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
type : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python, variable.parameter.class.python
= : keyword.operator.assignment.python, meta.class.inheritance.python, meta.class.python, source.python
12 : constant.numeric.dec.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
metaclass : meta.class.inheritance.python, meta.class.python, source.python, support.type.metaclass.python
= : keyword.operator.assignment.python, meta.class.inheritance.python, meta.class.python, source.python
FooMeta : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python

View File

@@ -0,0 +1,38 @@
@dec
# Bar.name=... is not legal, but the test is for highlighter not breaking badly
class Spam(Foo.Bar, Bar.name={'very': 'odd'}):
pass
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
dec : entity.name.function.decorator.python, meta.function.decorator.python, source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
Bar.name=... is not legal, but the test is for highlighter not breaking badly : comment.line.number-sign.python, source.python
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
Spam : entity.name.type.class.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
Foo : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
. : meta.class.inheritance.python, meta.class.python, punctuation.separator.period.python, source.python
Bar : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
Bar : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
. : meta.class.inheritance.python, meta.class.python, punctuation.separator.period.python, source.python
name : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
= : keyword.operator.assignment.python, meta.class.inheritance.python, meta.class.python, source.python
{ : meta.class.inheritance.python, meta.class.python, punctuation.definition.dict.begin.python, source.python
' : meta.class.inheritance.python, meta.class.python, punctuation.definition.string.begin.python, source.python, string.quoted.single.python
very : meta.class.inheritance.python, meta.class.python, source.python, string.quoted.single.python
' : meta.class.inheritance.python, meta.class.python, punctuation.definition.string.end.python, source.python, string.quoted.single.python
: : meta.class.inheritance.python, meta.class.python, punctuation.separator.dict.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
' : meta.class.inheritance.python, meta.class.python, punctuation.definition.string.begin.python, source.python, string.quoted.single.python
odd : meta.class.inheritance.python, meta.class.python, source.python, string.quoted.single.python
' : meta.class.inheritance.python, meta.class.python, punctuation.definition.string.end.python, source.python, string.quoted.single.python
} : meta.class.inheritance.python, meta.class.python, punctuation.definition.dict.end.python, source.python
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python

View File

@@ -0,0 +1,19 @@
class Spam(Foo, from=12):
pass
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
Spam : entity.name.type.class.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
Foo : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
from : keyword.control.flow.python, meta.class.inheritance.python, meta.class.python, source.python
= : keyword.operator.assignment.python, meta.class.inheritance.python, meta.class.python, source.python
12 : constant.numeric.dec.python, meta.class.inheritance.python, meta.class.python, source.python
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python

View File

@@ -0,0 +1,11 @@
class Exception: pass
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
Exception : meta.class.python, source.python, support.type.exception.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python

View File

@@ -0,0 +1,16 @@
class Foo(Exception, MyObj): pass
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
Foo : entity.name.type.class.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
Exception : meta.class.inheritance.python, meta.class.python, source.python, support.type.exception.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
MyObj : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python

View File

@@ -0,0 +1,15 @@
class Foo(metaclass=FooMeta): pass
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
Foo : entity.name.type.class.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
metaclass : meta.class.inheritance.python, meta.class.python, source.python, support.type.metaclass.python
= : keyword.operator.assignment.python, meta.class.inheritance.python, meta.class.python, source.python
FooMeta : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python

View File

@@ -0,0 +1,13 @@
class class:
pass
# doesn't break
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
class : keyword.control.flow.python, meta.class.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
doesn't break : comment.line.number-sign.python, source.python

View File

@@ -0,0 +1,30 @@
class None: pass
class True(False): pass
class False(object): pass
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
None : keyword.illegal.name.python, meta.class.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
True : keyword.illegal.name.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
False : constant.language.python, meta.class.inheritance.python, meta.class.python, source.python
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
False : keyword.illegal.name.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
object : meta.class.inheritance.python, meta.class.python, source.python, support.type.python
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python

View File

@@ -0,0 +1,16 @@
class Foo:
__slots__ = ()
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
Foo : entity.name.type.class.python, meta.class.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: source.python
__slots__ : source.python, support.variable.magic.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
( : punctuation.parenthesis.begin.python, source.python
) : punctuation.parenthesis.end.python, source.python

View File

@@ -0,0 +1,99 @@
class Foo:
def __init__(self):
super().__init__(foo=1)
super(). __init__(foo=1)
super(). \
__init__(foo=1)
__init__(foo=1)
foo.__init__(bar=1)
__init__(bar=1)
if:
__init__(bar=1)
class : meta.class.python, source.python, storage.type.class.python
: meta.class.python, source.python
Foo : entity.name.type.class.python, meta.class.python, source.python
: : meta.class.python, punctuation.section.class.begin.python, source.python
: meta.function.python, source.python
def : meta.function.python, source.python, storage.type.function.python
: meta.function.python, source.python
__init__ : meta.function.python, source.python, support.function.magic.python
( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python
self : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python, variable.parameter.function.language.special.self.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
super : meta.function-call.python, source.python, support.type.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
. : punctuation.separator.period.python, source.python
__init__ : meta.function-call.python, source.python, support.function.magic.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
foo : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python
1 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: source.python
super : meta.function-call.python, source.python, support.type.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
. : punctuation.separator.period.python, source.python
: source.python
__init__ : meta.function-call.python, source.python, support.function.magic.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
foo : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python
1 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: source.python
super : meta.function-call.python, source.python, support.type.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
. : punctuation.separator.period.python, source.python
: source.python
\ : punctuation.separator.continuation.line.python, source.python
: source.python
__init__ : meta.function-call.python, source.python, support.function.magic.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
foo : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python
1 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: source.python
__init__ : meta.function-call.python, source.python, support.function.magic.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
foo : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python
1 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: source.python
: source.python
foo : source.python
. : punctuation.separator.period.python, source.python
__init__ : meta.function-call.python, source.python, support.function.magic.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
bar : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python
1 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: source.python
__init__ : meta.function-call.python, source.python, support.function.magic.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
bar : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python
1 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: source.python
if : keyword.control.flow.python, source.python
: : punctuation.separator.colon.python, source.python
: source.python
__init__ : meta.function-call.python, source.python, support.function.magic.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
bar : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python
1 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python