mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
parsing for Python 2.5 try/except/finally
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
try:
|
||||
x
|
||||
except:
|
||||
y
|
||||
finally:
|
||||
z
|
||||
@@ -0,0 +1,26 @@
|
||||
PyFile:TryExceptFinally.py
|
||||
PyTryExceptStatement
|
||||
PsiElement(Py:TRY_KEYWORD)('try')
|
||||
PsiElement(Py:COLON)(':')
|
||||
PsiWhiteSpace('\n ')
|
||||
PyStatementList
|
||||
PyExpressionStatement
|
||||
PyReferenceExpression: x
|
||||
PsiElement(Py:IDENTIFIER)('x')
|
||||
PsiWhiteSpace('\n')
|
||||
PyExceptBlock
|
||||
PsiElement(Py:EXCEPT_KEYWORD)('except')
|
||||
PsiElement(Py:COLON)(':')
|
||||
PsiWhiteSpace('\n ')
|
||||
PyStatementList
|
||||
PyExpressionStatement
|
||||
PyReferenceExpression: y
|
||||
PsiElement(Py:IDENTIFIER)('y')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(Py:FINALLY_KEYWORD)('finally')
|
||||
PsiElement(Py:COLON)(':')
|
||||
PsiWhiteSpace('\n ')
|
||||
PyStatementList
|
||||
PyExpressionStatement
|
||||
PyReferenceExpression: z
|
||||
PsiElement(Py:IDENTIFIER)('z')
|
||||
Reference in New Issue
Block a user