mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-31442 Implement "rich" methods of PyFormattedStringNode including decoding
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.
This commit is contained in:
@@ -5,12 +5,12 @@ PyFile:FStringTerminatedByQuoteInsideNestedFStringLiteral.py
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:EQ)('=')
|
||||
PsiWhiteSpace(' ')
|
||||
PyStringLiteralExpression: }
|
||||
PyStringLiteralExpression: {f"""{f"}
|
||||
PyFormattedStringNode
|
||||
PsiElement(Py:FSTRING_START)('f'')
|
||||
PyFStringFragment
|
||||
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
||||
PyStringLiteralExpression:
|
||||
PyStringLiteralExpression: {f"
|
||||
PyFormattedStringNode
|
||||
PsiElement(Py:FSTRING_START)('f"""')
|
||||
PyFStringFragment
|
||||
|
||||
Reference in New Issue
Block a user