solorice/vscode/extensions/magicstack.magicpython-1.1.0/test/docstrings/continuation1.py
2022-04-28 20:54:44 +03:00

53 lines
3.0 KiB
Python

# not a docstring
a = \
r'''
>>> print(42)
a[wer]
'''
b = \
# docstring
r'''
>>> print()
a[wer]
'''
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
not a docstring : comment.line.number-sign.python, source.python
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
\ : punctuation.separator.continuation.line.python, source.python
: source.python
r : source.python, storage.type.string.python, string.regexp.quoted.multi.python
''' : punctuation.definition.string.begin.python, source.python, string.regexp.quoted.multi.python
>>> print : source.python, string.regexp.quoted.multi.python
( : punctuation.parenthesis.begin.regexp, source.python, string.regexp.quoted.multi.python, support.other.parenthesis.regexp
42 : source.python, string.regexp.quoted.multi.python
) : punctuation.parenthesis.end.regexp, source.python, string.regexp.quoted.multi.python, support.other.parenthesis.regexp
a : source.python, string.regexp.quoted.multi.python
[ : constant.other.set.regexp, meta.character.set.regexp, punctuation.character.set.begin.regexp, source.python, string.regexp.quoted.multi.python
w : constant.character.set.regexp, meta.character.set.regexp, source.python, string.regexp.quoted.multi.python
e : constant.character.set.regexp, meta.character.set.regexp, source.python, string.regexp.quoted.multi.python
r : constant.character.set.regexp, meta.character.set.regexp, source.python, string.regexp.quoted.multi.python
] : constant.other.set.regexp, meta.character.set.regexp, punctuation.character.set.end.regexp, source.python, string.regexp.quoted.multi.python
''' : punctuation.definition.string.end.python, source.python, string.regexp.quoted.multi.python
: source.python
b : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
\ : punctuation.separator.continuation.line.python, source.python
: source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
docstring : comment.line.number-sign.python, source.python
r : source.python, storage.type.string.python, string.quoted.docstring.raw.multi.python
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.multi.python
>>> : keyword.control.flow.python, source.python, string.quoted.docstring.raw.multi.python
print() : source.python, string.quoted.docstring.raw.multi.python
a[wer] : source.python, string.quoted.docstring.raw.multi.python
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.multi.python