PY-31442 Shorter parser error for incomplete fragments terminated by closing quotes

In these cases one probably doesn't want to either specify a type conversion character
or add a format part and has just forgotten a closing brace.
This commit is contained in:
Mikhail Golubev
2018-10-01 12:46:45 +03:00
parent b09241cb09
commit 1e527a9ba4
27 changed files with 31 additions and 31 deletions
@@ -23,7 +23,7 @@ PyFile:FStringTerminatedByQuoteInsideNestedStringLiteralInFormatPart.py
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
PyStringLiteralExpression:
PsiElement(Py:SINGLE_QUOTED_STRING)('"')
PsiErrorElement:type conversion, : or } expected
PsiErrorElement:} expected
<empty list>
PsiErrorElement:""" expected
<empty list>