Python: highlight raise from statement

This commit is contained in:
Santos Gallegos
2022-04-30 20:10:55 -05:00
committed by Stephan Seitz
parent c2b2fef3e4
commit 132405f18f
2 changed files with 8 additions and 0 deletions

View File

@@ -240,6 +240,8 @@
"finally"
] @exception
(raise_statement "from" @exception)
(try_statement
(else_clause
"else" @exception))

View File

@@ -0,0 +1,6 @@
try:
print(1 / 0)
except Exception:
raise RuntimeError from None
# ^ @exception
# ^ @exception