mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +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.
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
PyFile:FStringTerminatedByQuoteInNestedFormatPart.py
|
|
PyAssignmentStatement
|
|
PyTargetExpression: s
|
|
PsiElement(Py:IDENTIFIER)('s')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:EQ)('=')
|
|
PsiWhiteSpace(' ')
|
|
PyStringLiteralExpression: {f"{42:
|
|
PyFormattedStringElement
|
|
PsiElement(Py:FSTRING_START)('f'')
|
|
PyFStringFragment
|
|
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
|
PyStringLiteralExpression: {42:
|
|
PyFormattedStringElement
|
|
PsiElement(Py:FSTRING_START)('f"')
|
|
PyFStringFragment
|
|
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
|
PyNumericLiteralExpression
|
|
PsiElement(Py:INTEGER_LITERAL)('42')
|
|
PyFStringFragmentFormatPart
|
|
PsiElement(Py:FSTRING_FRAGMENT_FORMAT_START)(':')
|
|
PsiErrorElement:} expected
|
|
<empty list>
|
|
PsiErrorElement:" expected
|
|
<empty list>
|
|
PsiElement(Py:FSTRING_END)(''')
|
|
PsiErrorElement:End of statement expected
|
|
<empty list>
|
|
PsiElement(Py:RBRACE)('}')
|
|
PsiErrorElement:Statement expected, found Py:RBRACE
|
|
<empty list>
|
|
PyExpressionStatement
|
|
PyStringLiteralExpression: }'
|
|
PsiElement(Py:SINGLE_QUOTED_STRING)('"}'') |