mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -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
|
["for" "while" "break" "continue"] @repeat
|
||||||
|
|
||||||
|
[
|
||||||
|
"try"
|
||||||
|
"except"
|
||||||
|
"raise"
|
||||||
|
"finally"
|
||||||
|
] @exception
|
||||||
|
|
||||||
|
(try_statement
|
||||||
|
(else_clause
|
||||||
|
"else" @exception))
|
||||||
|
|
||||||
["(" ")" "[" "]" "{" "}"] @punctuation.bracket
|
["(" ")" "[" "]" "{" "}"] @punctuation.bracket
|
||||||
|
|
||||||
(interpolation
|
(interpolation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue