mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-31442 Fix detection of terminating quotes inside triple-quoted f-strings
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
s = f'''{
|
||||
''''''
|
||||
}'''
|
||||
@@ -0,0 +1,20 @@
|
||||
PyFile:MultilineFStringTerminatedByQuotesOfStringLiteral.py
|
||||
PyAssignmentStatement
|
||||
PyTargetExpression: s
|
||||
PsiElement(Py:IDENTIFIER)('s')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:EQ)('=')
|
||||
PsiWhiteSpace(' ')
|
||||
PyStringLiteralExpression: {
|
||||
|
||||
}
|
||||
PyFormattedStringNode
|
||||
PsiElement(Py:FSTRING_START)('f'''')
|
||||
PyFStringFragment
|
||||
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
||||
PsiErrorElement:expression expected
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiErrorElement:} expected
|
||||
<empty list>
|
||||
PsiElement(Py:FSTRING_END)(''''')
|
||||
PsiElement(Py:TRIPLE_QUOTED_STRING)(''''\n}'''')
|
||||
Reference in New Issue
Block a user