mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
Also fixed the problem that whitespaces inside literal parts of f-strings were matched as PsiWhitespaces instead of FSTRING_TEXT tokens and updated all relevant test data.
25 lines
954 B
Plaintext
25 lines
954 B
Plaintext
PyFile:FStringFragmentWithNotParenthesizedLambda.py
|
|
PyAssignmentStatement
|
|
PyTargetExpression: s
|
|
PsiElement(Py:IDENTIFIER)('s')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:EQ)('=')
|
|
PsiWhiteSpace(' ')
|
|
PyStringLiteralExpression: {lambda x: 42}
|
|
PyFormattedStringNode
|
|
PsiElement(Py:FSTRING_START)('f'')
|
|
PyFStringFragment
|
|
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
|
PyLambdaExpression
|
|
PsiElement(Py:LAMBDA_KEYWORD)('lambda')
|
|
PsiWhiteSpace(' ')
|
|
PyParameterList
|
|
PyNamedParameter('x')
|
|
PsiElement(Py:IDENTIFIER)('x')
|
|
PsiErrorElement:',' or '(' or ')' expected
|
|
<empty list>
|
|
PyFStringFragmentFormatPart
|
|
PsiElement(Py:FSTRING_FRAGMENT_FORMAT_START)(':')
|
|
PsiElement(Py:FSTRING_TEXT)(' 42')
|
|
PsiElement(Py:FSTRING_FRAGMENT_END)('}')
|
|
PsiElement(Py:FSTRING_END)(''') |