diff options
| author | Ferdinand Ratajczak <ferdinand@fratajcz.dev> | 2022-03-22 12:36:35 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-04-07 23:24:18 +0200 |
| commit | 1fb68f76af4fbbae923008e7531938fd44fb631e (patch) | |
| tree | 743c4fa3d1499dbb6acacc1b5d20a5dc2acd8120 /queries/python | |
| parent | 0373e2ae5f47023b687dc7c84a2ce2aaff7110ba (diff) | |
highlights(python): highlight exception keywords
Diffstat (limited to 'queries/python')
| -rw-r--r-- | queries/python/highlights.scm | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
