mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 17:10:44 +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.
28 lines
959 B
Plaintext
28 lines
959 B
Plaintext
PyFile:FStringTerminatedByQuoteOfFStringLiteral.py
|
|
PyAssignmentStatement
|
|
PyTargetExpression: s
|
|
PsiElement(Py:IDENTIFIER)('s')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:EQ)('=')
|
|
PsiWhiteSpace(' ')
|
|
PyStringLiteralExpression: foo{f
|
|
PyFormattedStringElement
|
|
PsiElement(Py:FSTRING_START)('f'')
|
|
PsiElement(Py:FSTRING_TEXT)('foo')
|
|
PyFStringFragment
|
|
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
|
PyReferenceExpression: f
|
|
PsiElement(Py:IDENTIFIER)('f')
|
|
PsiErrorElement:} expected
|
|
<empty list>
|
|
PsiElement(Py:FSTRING_END)(''')
|
|
PsiErrorElement:End of statement expected
|
|
<empty list>
|
|
PyExpressionStatement
|
|
PyReferenceExpression: bar
|
|
PsiElement(Py:IDENTIFIER)('bar')
|
|
PsiErrorElement:End of statement expected
|
|
<empty list>
|
|
PyExpressionStatement
|
|
PyStringLiteralExpression: }baz
|
|
PsiElement(Py:SINGLE_QUOTED_STRING)(''}baz'') |