aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/python
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2022-04-30 20:10:55 -0500
committerStephan Seitz <stephan.seitz@fau.de>2022-05-01 10:06:13 +0200
commit132405f18fc85def8e5e2c5ad085a7f5fcb54880 (patch)
tree3006e83742fa55c119397c620ff38fa580dfbed6 /tests/query/highlights/python
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-132405f18fc85def8e5e2c5ad085a7f5fcb54880.tar
nvim-treesitter-132405f18fc85def8e5e2c5ad085a7f5fcb54880.tar.gz
nvim-treesitter-132405f18fc85def8e5e2c5ad085a7f5fcb54880.tar.bz2
nvim-treesitter-132405f18fc85def8e5e2c5ad085a7f5fcb54880.tar.lz
nvim-treesitter-132405f18fc85def8e5e2c5ad085a7f5fcb54880.tar.xz
nvim-treesitter-132405f18fc85def8e5e2c5ad085a7f5fcb54880.tar.zst
nvim-treesitter-132405f18fc85def8e5e2c5ad085a7f5fcb54880.zip
Python: highlight raise from statement
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