highlights(python): highlight exception keywords

This commit is contained in:
Ferdinand Ratajczak 2022-03-22 12:36:35 +01:00 committed by Stephan Seitz
parent 0373e2ae5f
commit 1fb68f76af

View file

@ -237,6 +237,17 @@
["for" "while" "break" "continue"] @repeat
[
"try"
"except"
"raise"
"finally"
] @exception
(try_statement
(else_clause
"else" @exception))
["(" ")" "[" "]" "{" "}"] @punctuation.bracket
(interpolation