report colon with no following statement list as error (PY-2790)

This commit is contained in:
Dmitry Jemerov
2011-02-22 16:05:27 +01:00
parent 53791956d1
commit e500402006
4 changed files with 37 additions and 6 deletions
+1
View File
@@ -0,0 +1 @@
for a in b:
+16
View File
@@ -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>