aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
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