Files
openide/python/testData/psi/FStringAllKindsNested.txt

36 lines
1.6 KiB
Plaintext

PyFile:FStringAllKindsNested.py
PyAssignmentStatement
PyTargetExpression: s
PsiElement(Py:IDENTIFIER)('s')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyStringLiteralExpression: 1{f'''2{f"3{f'4'}"}'''}
PyFormattedStringNode
PsiElement(Py:FSTRING_START)('f"""')
PsiElement(Py:FSTRING_TEXT)('1')
PyFStringFragment
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
PyStringLiteralExpression: 2{f"3{f'4'}"}
PyFormattedStringNode
PsiElement(Py:FSTRING_START)('f'''')
PsiElement(Py:FSTRING_TEXT)('2')
PyFStringFragment
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
PyStringLiteralExpression: 3{f'4'}
PyFormattedStringNode
PsiElement(Py:FSTRING_START)('f"')
PsiElement(Py:FSTRING_TEXT)('3')
PyFStringFragment
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
PyStringLiteralExpression: 4
PyFormattedStringNode
PsiElement(Py:FSTRING_START)('f'')
PsiElement(Py:FSTRING_TEXT)('4')
PsiElement(Py:FSTRING_END)(''')
PsiElement(Py:FSTRING_FRAGMENT_END)('}')
PsiElement(Py:FSTRING_END)('"')
PsiElement(Py:FSTRING_FRAGMENT_END)('}')
PsiElement(Py:FSTRING_END)(''''')
PsiElement(Py:FSTRING_FRAGMENT_END)('}')
PsiElement(Py:FSTRING_END)('"""')