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,48 @@
import asyncio
def showcase():
"""Some code to showcase the syntax.
Docstrings are recognized and have an additional scope.
Color schemas can render them differently from other strings.
HACK doctests are highlighted too.
>>> print('''hello
... world''')
"""
@decorator(param='spam')
async def coroutine(db:aio_db.DatabaseConnection) -> List[str]:
r"""A coroutine."""
await logger.log('working\x12with %r', aio_db)
async with db.transaction():
result = await db.query(...)
print(f'Result: {result!r}')
mapping = None # type: Dict[int, Any] # PEP 484
# a regular expression
get_regex = lambda: re.compile( # type: ignore
r"""\A
word
(?: # a comment
(?P<fill>.)?
(?P<align>[<>=^]) (?# another comment)
)?
another word\.\.\.
(?:\.(?P<precision>0|(?!0)\d+))?
\Z""",
re.VERBOSE | re.DOTALL)
# NOTE Numbers with leading zeros are invalid in Python 3,
# use 0o...
answer = func(0xdeadbeef + 0b00100001 + 0123 + 0o123 +
1_005_123 + # PEP 515
# complex numbers
.10e12 + 2j) @ mat
return R'''No escapes '\' in this \one'''

View File

@@ -0,0 +1,171 @@
comment.line.number-sign.python
comment.regexp
comment.typehint.directive.notation.python
comment.typehint.ignore.notation.python
comment.typehint.punctuation.notation.python
comment.typehint.type.notation.python
comment.typehint.variable.notation.python
constant.character.escape.python
constant.character.escape.regexp
constant.character.format.placeholder.other.python
constant.character.set.regexp
constant.character.unicode.regexp
constant.language.python
constant.numeric.bin.python
constant.numeric.dec.python
constant.numeric.float.python
constant.numeric.hex.python
constant.numeric.oct.python
constant.numeric.python
constant.other.caps.python
constant.other.ellipsis.python
constant.other.set.regexp
entity.name.function.decorator.python
entity.name.function.python
entity.name.tag.backreference.regexp
entity.name.tag.named.backreference.regexp
entity.name.tag.named.group.regexp
entity.name.type.class.python
entity.other.inherited-class.python
invalid.deprecated.backtick.python
invalid.deprecated.prefix.python
invalid.deprecated.semicolon.python
invalid.illegal.annotation.python
invalid.illegal.brace.python
invalid.illegal.dec.python
invalid.illegal.decorator.python
invalid.illegal.line.continuation.python
invalid.illegal.name.python
invalid.illegal.newline.python
invalid.illegal.operator.python
invalid.illegal.prefix.python
keyword.codetag.notation.python
keyword.control.flow.python
keyword.control.import.python
keyword.illegal.name.python
keyword.operator.arithmetic.python
keyword.operator.assignment.python
keyword.operator.bitwise.python
keyword.operator.comparison.python
keyword.operator.conditional.negative.regexp
keyword.operator.conditional.regexp
keyword.operator.disjunction.regexp
keyword.operator.logical.python
keyword.operator.lookahead.negative.regexp
keyword.operator.lookahead.regexp
keyword.operator.lookbehind.negative.regexp
keyword.operator.lookbehind.regexp
keyword.operator.negation.regexp
keyword.operator.python
keyword.operator.quantifier.regexp
keyword.operator.unpacking.arguments.python
keyword.operator.unpacking.parameter.python
meta.backreference.named.regexp
meta.backreference.regexp
meta.character.set.regexp
meta.class.inheritance.python
meta.class.python
meta.format.brace.python
meta.format.percent.python
meta.fstring.python
meta.function-call.generic.python
meta.function-call.python
meta.function.decorator.python
meta.function.parameters.python
meta.function.python
meta.item-access.python
meta.lambda-function.python
meta.named.regexp
meta.typehint.comment.python
punctuation.character.set.begin.regexp
punctuation.character.set.end.regexp
punctuation.comment.begin.regexp
punctuation.comment.end.regexp
punctuation.definition.arguments.begin.python
punctuation.definition.arguments.end.python
punctuation.definition.comment.python
punctuation.definition.decorator.python
punctuation.definition.dict.begin.python
punctuation.definition.dict.end.python
punctuation.definition.inheritance.begin.python
punctuation.definition.inheritance.end.python
punctuation.definition.list.begin.python
punctuation.definition.list.end.python
punctuation.definition.parameters.begin.python
punctuation.definition.parameters.end.python
punctuation.definition.string.begin.python
punctuation.definition.string.end.python
punctuation.parenthesis.backreference.named.begin.regexp
punctuation.parenthesis.backreference.named.end.regexp
punctuation.parenthesis.begin.python
punctuation.parenthesis.begin.regexp
punctuation.parenthesis.conditional.begin.regexp
punctuation.parenthesis.conditional.end.regexp
punctuation.parenthesis.end.python
punctuation.parenthesis.end.regexp
punctuation.parenthesis.lookahead.begin.regexp
punctuation.parenthesis.lookahead.end.regexp
punctuation.parenthesis.lookbehind.begin.regexp
punctuation.parenthesis.lookbehind.end.regexp
punctuation.parenthesis.named.begin.regexp
punctuation.parenthesis.named.end.regexp
punctuation.parenthesis.non-capturing.begin.regexp
punctuation.parenthesis.non-capturing.end.regexp
punctuation.section.class.begin.python
punctuation.section.function.begin.python
punctuation.section.function.lambda.begin.python
punctuation.separator.annotation.python
punctuation.separator.annotation.result.python
punctuation.separator.arguments.python
punctuation.separator.colon.python
punctuation.separator.continuation.line.python
punctuation.separator.dict.python
punctuation.separator.element.python
punctuation.separator.inheritance.python
punctuation.separator.parameters.python
punctuation.separator.period.python
punctuation.separator.slice.python
storage.modifier.declaration.python
storage.modifier.flag.regexp
storage.type.class.python
storage.type.format.python
storage.type.function.async.python
storage.type.function.lambda.python
storage.type.function.python
storage.type.imaginary.number.python
storage.type.number.python
storage.type.string.python
string.interpolated.python
string.quoted.binary.multi.python
string.quoted.binary.single.python
string.quoted.docstring.multi.python
string.quoted.docstring.raw.multi.python
string.quoted.docstring.raw.single.python
string.quoted.docstring.single.python
string.quoted.multi.python
string.quoted.raw.binary.multi.python
string.quoted.raw.binary.single.python
string.quoted.raw.multi.python
string.quoted.raw.single.python
string.quoted.single.python
string.regexp.quoted.multi.python
string.regexp.quoted.single.python
support.function.builtin.python
support.function.magic.python
support.other.escape.special.regexp
support.other.match.any.regexp
support.other.match.begin.regexp
support.other.match.end.regexp
support.other.parenthesis.regexp
support.type.exception.python
support.type.metaclass.python
support.type.python
support.variable.magic.python
variable.language.special.cls.python
variable.language.special.self.python
variable.legacy.builtin.python
variable.parameter.class.python
variable.parameter.function-call.python
variable.parameter.function.language.python
variable.parameter.function.language.special.cls.python
variable.parameter.function.language.special.self.python