mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
so as not to cause confusion with ASTNode. Also additionally rename PyLiteralStringElement to PyPlainStringElement, again, not to confuse users with subtle "string literal" vs. "literal string" differences in meaning.
22 lines
756 B
Plaintext
22 lines
756 B
Plaintext
PyFile:MultilineFStringContainsCommentInsideExpression.py
|
|
PyAssignmentStatement
|
|
PyTargetExpression: s
|
|
PsiElement(Py:IDENTIFIER)('s')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:EQ)('=')
|
|
PsiWhiteSpace(' ')
|
|
PyStringLiteralExpression: {[
|
|
# comment
|
|
]}
|
|
PyFormattedStringElement
|
|
PsiElement(Py:FSTRING_START)('f'''')
|
|
PyFStringFragment
|
|
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
|
PyListLiteralExpression
|
|
PsiElement(Py:LBRACKET)('[')
|
|
PsiWhiteSpace('\n ')
|
|
PsiComment(Py:END_OF_LINE_COMMENT)('# comment')
|
|
PsiWhiteSpace('\n')
|
|
PsiElement(Py:RBRACKET)(']')
|
|
PsiElement(Py:FSTRING_FRAGMENT_END)('}')
|
|
PsiElement(Py:FSTRING_END)(''''') |