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:
Mikhail Golubev
2018-10-01 12:46:42 +03:00
parent 68f72f3dd9
commit cd3122c7c1
47 changed files with 586 additions and 522 deletions
@@ -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