mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
Also fixed the problem that whitespaces inside literal parts of f-strings were matched as PsiWhitespaces instead of FSTRING_TEXT tokens and updated all relevant test data.
28 lines
978 B
Plaintext
28 lines
978 B
Plaintext
PyFile:FStringTerminatedByQuoteOfFStringLiteral.py
|
|
PyAssignmentStatement
|
|
PyTargetExpression: s
|
|
PsiElement(Py:IDENTIFIER)('s')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:EQ)('=')
|
|
PsiWhiteSpace(' ')
|
|
PyStringLiteralExpression: foo{f
|
|
PyFormattedStringNode
|
|
PsiElement(Py:FSTRING_START)('f'')
|
|
PsiElement(Py:FSTRING_TEXT)('foo')
|
|
PyFStringFragment
|
|
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
|
PyReferenceExpression: f
|
|
PsiElement(Py:IDENTIFIER)('f')
|
|
PsiErrorElement:type conversion, : or } 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'') |