mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
highlights(python): highlight exception keywords
This commit is contained in:
parent
0373e2ae5f
commit
1fb68f76af
1 changed files with 11 additions and 0 deletions
|
|
@ -237,6 +237,17 @@
|
|||
|
||||
["for" "while" "break" "continue"] @repeat
|
||||
|
||||
[
|
||||
"try"
|
||||
"except"
|
||||
"raise"
|
||||
"finally"
|
||||
] @exception
|
||||
|
||||
(try_statement
|
||||
(else_clause
|
||||
"else" @exception))
|
||||
|
||||
["(" ")" "[" "]" "{" "}"] @punctuation.bracket
|
||||
|
||||
(interpolation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue