summaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorFerdinand Ratajczak <ferdinand@fratajcz.dev>2022-03-22 12:36:35 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-04-07 23:24:18 +0200
commit1fb68f76af4fbbae923008e7531938fd44fb631e (patch)
tree743c4fa3d1499dbb6acacc1b5d20a5dc2acd8120 /queries/python
parentUpdate README (diff)
downloadnvim-treesitter-1fb68f76af4fbbae923008e7531938fd44fb631e.tar
nvim-treesitter-1fb68f76af4fbbae923008e7531938fd44fb631e.tar.gz
nvim-treesitter-1fb68f76af4fbbae923008e7531938fd44fb631e.tar.bz2
nvim-treesitter-1fb68f76af4fbbae923008e7531938fd44fb631e.tar.lz
nvim-treesitter-1fb68f76af4fbbae923008e7531938fd44fb631e.tar.xz
nvim-treesitter-1fb68f76af4fbbae923008e7531938fd44fb631e.tar.zst
nvim-treesitter-1fb68f76af4fbbae923008e7531938fd44fb631e.zip
highlights(python): highlight exception keywords
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index e7b59caf6..42d92648b 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -237,6 +237,17 @@
["for" "while" "break" "continue"] @repeat
+[
+ "try"
+ "except"
+ "raise"
+ "finally"
+] @exception
+
+(try_statement
+ (else_clause
+ "else" @exception))
+
["(" ")" "[" "]" "{" "}"] @punctuation.bracket
(interpolation