Files
openide/python/testData/psi/SingleLineFStringContainsCommentInsideExpression.txt
2020-08-17 16:32:09 +00:00

20 lines
739 B
Plaintext

PyFile:SingleLineFStringContainsCommentInsideExpression.py
PyAssignmentStatement
PyTargetExpression: s
PsiElement(Py:IDENTIFIER)('s')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyStringLiteralExpression: {42 # comment}'
PyFormattedStringElement
PsiElement(Py:FSTRING_START)('f'')
PyFStringFragment
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
PyNumericLiteralExpression
PsiElement(Py:INTEGER_LITERAL)('42')
PsiErrorElement:Type conversion, ':' or '}' expected
<empty list>
PsiWhiteSpace(' ')
PsiComment(Py:END_OF_LINE_COMMENT)('# comment}'')
PsiErrorElement:' expected
<empty list>