mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09: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.
49 lines
1.9 KiB
Plaintext
49 lines
1.9 KiB
Plaintext
PyFile:FStringTerminatedByLineBreakInNestedExpressionInFormatPart.py
|
|
PyAssignmentStatement
|
|
PyTargetExpression: s
|
|
PsiElement(Py:IDENTIFIER)('s')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:EQ)('=')
|
|
PsiWhiteSpace(' ')
|
|
PyStringLiteralExpression: {f'{42:{1 +
|
|
PyFormattedStringElement
|
|
PsiElement(Py:FSTRING_START)('f"')
|
|
PyFStringFragment
|
|
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
|
PyStringLiteralExpression: {42:{1 +
|
|
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)(':')
|
|
PyFStringFragment
|
|
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
|
PyBinaryExpression
|
|
PyNumericLiteralExpression
|
|
PsiElement(Py:INTEGER_LITERAL)('1')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:PLUS)('+')
|
|
PsiErrorElement:expression expected
|
|
<empty list>
|
|
PsiErrorElement:' expected
|
|
<empty list>
|
|
PsiErrorElement:" expected
|
|
<empty list>
|
|
PsiWhiteSpace('\n')
|
|
PyExpressionStatement
|
|
PyNumericLiteralExpression
|
|
PsiElement(Py:INTEGER_LITERAL)('2')
|
|
PsiErrorElement:End of statement expected
|
|
<empty list>
|
|
PsiElement(Py:RBRACE)('}')
|
|
PsiErrorElement:Statement expected, found Py:RBRACE
|
|
<empty list>
|
|
PsiElement(Py:RBRACE)('}')
|
|
PsiErrorElement:Statement expected, found Py:RBRACE
|
|
<empty list>
|
|
PyExpressionStatement
|
|
PyStringLiteralExpression: }"
|
|
PsiElement(Py:SINGLE_QUOTED_STRING)(''}"') |