mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
highlighting tests; fix try/finally parsing; drop old try/finally PSI; fix "continue in finally" highlighting
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
<orderEntry type="module" module-name="lang-api" />
|
||||
<orderEntry type="module" module-name="ExtendedApi" />
|
||||
<orderEntry type="library" name="JUnit3" level="project" />
|
||||
<orderEntry type="module" module-name="codeInsight-tests" />
|
||||
<orderEntryProperties />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
while True:
|
||||
try:
|
||||
x
|
||||
finally:
|
||||
<error descr="'continue' not supported inside 'finally' clause">continue</error>
|
||||
@@ -0,0 +1 @@
|
||||
<error descr="'return' outside of function">return 1</error>
|
||||
@@ -0,0 +1,4 @@
|
||||
try:
|
||||
x
|
||||
finally:
|
||||
z
|
||||
@@ -0,0 +1,17 @@
|
||||
PyFile:TryFinally.py
|
||||
PyTryExceptStatement
|
||||
PsiElement(Py:TRY_KEYWORD)('try')
|
||||
PsiElement(Py:COLON)(':')
|
||||
PsiWhiteSpace('\n ')
|
||||
PyStatementList
|
||||
PyExpressionStatement
|
||||
PyReferenceExpression: x
|
||||
PsiElement(Py:IDENTIFIER)('x')
|
||||
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