fixed PY-11058 False positive Statement expected, found statement break

This commit is contained in:
Ekaterina Tuzova
2013-10-11 17:05:05 +04:00
parent bfaf87bc5a
commit ec5f16c8e0
4 changed files with 32 additions and 0 deletions
@@ -0,0 +1,2 @@
if True:
import tmp2; import tmp1
@@ -0,0 +1,24 @@
PyFile:ResetAfterSemicolon.py
PyIfStatement
PyIfPartIf
PsiElement(Py:IF_KEYWORD)('if')
PsiWhiteSpace(' ')
PyReferenceExpression: True
PsiElement(Py:IDENTIFIER)('True')
PsiElement(Py:COLON)(':')
PsiWhiteSpace('\n ')
PyStatementList
PyImportStatement
PsiElement(Py:IMPORT_KEYWORD)('import')
PsiWhiteSpace(' ')
PyImportElement:tmp2
PyReferenceExpression: tmp2
PsiElement(Py:IDENTIFIER)('tmp2')
PsiElement(Py:SEMICOLON)(';')
PsiWhiteSpace(' ')
PyImportStatement
PsiElement(Py:IMPORT_KEYWORD)('import')
PsiWhiteSpace(' ')
PyImportElement:tmp1
PyReferenceExpression: tmp1
PsiElement(Py:IDENTIFIER)('tmp1')