mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +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.
18 lines
657 B
Plaintext
18 lines
657 B
Plaintext
PyFile:FStringEscapedBraces.py
|
|
PyAssignmentStatement
|
|
PyTargetExpression: s
|
|
PsiElement(Py:IDENTIFIER)('s')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:EQ)('=')
|
|
PsiWhiteSpace(' ')
|
|
PyStringLiteralExpression: {} {{42}} } {
|
|
PyFormattedStringNode
|
|
PsiElement(Py:FSTRING_START)('f'')
|
|
PsiElement(Py:FSTRING_TEXT)('{{}} {{')
|
|
PyFStringFragment
|
|
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
|
PyNumericLiteralExpression
|
|
PsiElement(Py:INTEGER_LITERAL)('42')
|
|
PsiElement(Py:FSTRING_FRAGMENT_END)('}')
|
|
PsiElement(Py:FSTRING_TEXT)('}} }} {{')
|
|
PsiElement(Py:FSTRING_END)(''') |