Files
openide/python/testData/psi/FStringStatementInsideExpression.txt
Mikhail Golubev 77e47676b4 PY-31442 Better recovery inside expression fragments
Including cases when there is a dangling backslash inside an expression.
2018-10-01 12:46:44 +03:00

41 lines
1.5 KiB
Plaintext

PyFile:FStringStatementInsideExpression.py
PyAssignmentStatement
PyTargetExpression: s
PsiElement(Py:IDENTIFIER)('s')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyStringLiteralExpression: {
def func():
pass
}"""
PyFormattedStringNode
PsiElement(Py:FSTRING_START)('f"""')
PyFStringFragment
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
PsiErrorElement:expression expected
<empty list>
PsiWhiteSpace('\n')
PsiErrorElement:Unexpected expression token
PsiElement(Py:DEF_KEYWORD)('def')
PsiWhiteSpace(' ')
PsiErrorElement:Unexpected expression token
PsiElement(Py:IDENTIFIER)('func')
PsiErrorElement:Unexpected expression token
PsiElement(Py:LPAR)('(')
PsiErrorElement:Unexpected expression token
PsiElement(Py:RPAR)(')')
PsiErrorElement:Unexpected expression token
PsiElement(Py:COLON)(':')
PsiWhiteSpace('\n ')
PsiErrorElement:Unexpected expression token
PsiElement(Py:PASS_KEYWORD)('pass')
PsiWhiteSpace('\n')
PsiErrorElement:Unexpected expression token
PsiElement(Py:RBRACE)('}')
PsiErrorElement:Unexpected expression token
PsiElement(Py:TRIPLE_QUOTED_STRING)('"""')
PsiErrorElement:type conversion, : or } expected
<empty list>
PsiErrorElement:Unexpected f-string token
<empty list>