mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-8948 Not closed quote in subscription breaks parsing for the whole file
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
a["key""]"
|
||||
if True:
|
||||
pass
|
||||
@@ -0,0 +1,25 @@
|
||||
PyFile:NotClosedSlice.py
|
||||
PyExpressionStatement
|
||||
PyConditionalExpression
|
||||
PySubscriptionExpression
|
||||
PyReferenceExpression: a
|
||||
PsiElement(Py:IDENTIFIER)('a')
|
||||
PsiElement(Py:LBRACKET)('[')
|
||||
PyConditionalExpression
|
||||
PyStringLiteralExpression: key]
|
||||
PsiElement(Py:SINGLE_QUOTED_STRING)('"key"')
|
||||
PsiElement(Py:SINGLE_QUOTED_STRING)('"]"')
|
||||
PsiErrorElement:']' expected
|
||||
<empty list>
|
||||
PsiWhiteSpace('\n')
|
||||
PyIfStatement
|
||||
PyIfPartIf
|
||||
PsiElement(Py:IF_KEYWORD)('if')
|
||||
PsiWhiteSpace(' ')
|
||||
PyReferenceExpression: True
|
||||
PsiElement(Py:IDENTIFIER)('True')
|
||||
PsiElement(Py:COLON)(':')
|
||||
PsiWhiteSpace('\n ')
|
||||
PyStatementList
|
||||
PyPassStatement
|
||||
PsiElement(Py:PASS_KEYWORD)('pass')
|
||||
Reference in New Issue
Block a user