mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
report colon with no following statement list as error (PY-2790)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
for a in b:
|
||||
@@ -0,0 +1,16 @@
|
||||
PyFile:ColonBeforeEof.py
|
||||
PyForStatement
|
||||
PyForPart
|
||||
PsiElement(Py:FOR_KEYWORD)('for')
|
||||
PsiWhiteSpace(' ')
|
||||
PyTargetExpression: a
|
||||
PsiElement(Py:IDENTIFIER)('a')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IN_KEYWORD)('in')
|
||||
PsiWhiteSpace(' ')
|
||||
PyReferenceExpression: b
|
||||
PsiElement(Py:IDENTIFIER)('b')
|
||||
PsiElement(Py:COLON)(':')
|
||||
PyStatementList
|
||||
PsiErrorElement:statement expected
|
||||
<empty list>
|
||||
Reference in New Issue
Block a user