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/highlights.scm | |
| parent | Update README (diff) | |
| download | nvim-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/highlights.scm')
| -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 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 |
