Files
openide/python/testData/psi/FStringRawFStringInsidePlainFString.txt
2020-01-28 16:04:27 +00:00

22 lines
809 B
Plaintext

PyFile:FStringRawFStringInsidePlainFString.py
PyAssignmentStatement
PyTargetExpression: s
PsiElement(Py:IDENTIFIER)('s')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyStringLiteralExpression: foo{rf"\n"}bar
PyFormattedStringElement
PsiElement(Py:FSTRING_START)('f'')
PsiElement(Py:FSTRING_TEXT)('foo')
PyFStringFragment
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
PyStringLiteralExpression: \n
PyFormattedStringElement
PsiElement(Py:FSTRING_START)('rf"')
PsiElement(Py:FSTRING_RAW_TEXT)('\n')
PsiElement(Py:FSTRING_END)('"')
PsiElement(Py:FSTRING_FRAGMENT_END)('}')
PsiElement(Py:FSTRING_TEXT)('bar\n')
PsiElement(Py:FSTRING_END)(''')