aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/python
diff options
context:
space:
mode:
Diffstat (limited to 'tests/query/highlights/python')
-rw-r--r--tests/query/highlights/python/raise_from.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/query/highlights/python/raise_from.py b/tests/query/highlights/python/raise_from.py
new file mode 100644
index 000000000..8a48a222b
--- /dev/null
+++ b/tests/query/highlights/python/raise_from.py
@@ -0,0 +1,6 @@
+try:
+ print(1 / 0)
+except Exception:
+ raise RuntimeError from None
+ # ^ @exception
+ # ^ @exception