From 1fb68f76af4fbbae923008e7531938fd44fb631e Mon Sep 17 00:00:00 2001 From: Ferdinand Ratajczak Date: Tue, 22 Mar 2022 12:36:35 +0100 Subject: highlights(python): highlight exception keywords --- queries/python/highlights.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'queries/python') diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index e7b59caf..42d92648 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 -- cgit v1.2.3