PyFile:CompleteFStringFragmentTerminatedAtStatementOnlyKeyword.py PyAssignmentStatement PyTargetExpression: s PsiElement(Py:IDENTIFIER)('s') PsiWhiteSpace(' ') PsiElement(Py:EQ)('=') PsiWhiteSpace(' ') PyStringLiteralExpression: { PyFormattedStringElement PsiElement(Py:FSTRING_START)('f'') PyFStringFragment PsiElement(Py:FSTRING_FRAGMENT_START)('{') PsiErrorElement:Expression expected PsiWhiteSpace('\n') PsiErrorElement:Type conversion, ':' or '}' expected PsiErrorElement:' expected PyRaiseStatement PsiElement(Py:RAISE_KEYWORD)('raise') PsiErrorElement:End of statement expected PsiElement(Py:COLON)(':') PsiErrorElement:Statement expected, found Py:COLON PyExpressionStatement PyReferenceExpression: foo PsiElement(Py:IDENTIFIER)('foo') PsiErrorElement:End of statement expected PsiElement(Py:RBRACE)('}') PsiErrorElement:Statement expected, found Py:RBRACE PyExpressionStatement PyStringLiteralExpression: PsiElement(Py:SINGLE_QUOTED_STRING)(''')