Files
openide/python/testData/psi/TemplateStrings.txt
Daniil Kalinin b47b5beb3d PY-79967 Add a couple of tests for template strings to PythonParsingTest
GitOrigin-RevId: df2ec2ac92e21fb307cb17f446c2e5eca8e09eb3
2025-05-07 15:14:42 +00:00

55 lines
1.6 KiB
Plaintext

PyFile:TemplateStrings.py
PyAssignmentStatement
PyTargetExpression: s1
PsiElement(Py:IDENTIFIER)('s1')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyStringLiteralExpression:
PyFormattedStringElement
PsiElement(Py:FSTRING_START)('t'')
PsiElement(Py:FSTRING_END)(''')
PsiWhiteSpace('\n')
PyAssignmentStatement
PyTargetExpression: s2
PsiElement(Py:IDENTIFIER)('s2')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyStringLiteralExpression:
PyFormattedStringElement
PsiElement(Py:FSTRING_START)('tr'')
PsiElement(Py:FSTRING_END)(''')
PsiWhiteSpace('\n')
PyAssignmentStatement
PyTargetExpression: s3
PsiElement(Py:IDENTIFIER)('s3')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyStringLiteralExpression:
PyFormattedStringElement
PsiElement(Py:FSTRING_START)('rt'')
PsiElement(Py:FSTRING_END)(''')
PsiWhiteSpace('\n')
PyAssignmentStatement
PyTargetExpression: s4
PsiElement(Py:IDENTIFIER)('s4')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyStringLiteralExpression:
PyFormattedStringElement
PsiElement(Py:FSTRING_START)('T'')
PsiElement(Py:FSTRING_END)(''')
PsiWhiteSpace('\n')
PyAssignmentStatement
PyTargetExpression: s5
PsiElement(Py:IDENTIFIER)('s5')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyStringLiteralExpression:
PyFormattedStringElement
PsiElement(Py:FSTRING_START)('RT'')
PsiElement(Py:FSTRING_END)(''')