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.
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
PyFile:FStringTerminatedByQuoteInsideFStringLiteralInFormatPart.py
|
|
PyAssignmentStatement
|
|
PyTargetExpression: s
|
|
PsiElement(Py:IDENTIFIER)('s')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:EQ)('=')
|
|
PsiWhiteSpace(' ')
|
|
PyStringLiteralExpression: {42:{f"}}'
|
|
PyFormattedStringNode
|
|
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)('{')
|
|
PyStringLiteralExpression:
|
|
PyFormattedStringNode
|
|
PsiElement(Py:FSTRING_START)('f"')
|
|
PsiErrorElement:Expected "
|
|
<empty list>
|
|
PsiErrorElement:type conversion, : or } expected
|
|
<empty list>
|
|
PsiElement(Py:FSTRING_END)(''')
|
|
PsiElement(Py:SINGLE_QUOTED_STRING)('"}}'') |