Files
openide/python/testData/psi/FStringIncompleteFragment.txt
T
Mikhail Golubev 0300a411d6 PY-31442 Parse type conversions (!r/!s/!a) inside fragments
Also, improved handling of incomplete fragments inside f-strings.
2018-10-01 12:46:42 +03:00

17 lines
587 B
Plaintext

PyFile:FStringIncompleteFragment.py
PyAssignmentStatement
PyTargetExpression: s
PsiElement(Py:IDENTIFIER)('s')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyStringLiteralExpression:
PyFormattedStringNode
PsiElement(Py:FSTRING_START)('f'')
PyFStringFragment
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
PyNumericLiteralExpression
PsiElement(Py:INTEGER_LITERAL)('42')
PsiErrorElement:type conversion, : or } expected
<empty list>
PsiElement(Py:FSTRING_END)(''')