mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(rust): panic!() and assert!() as @exception
This commit is contained in:
parent
ae104a057f
commit
8c7ffaf66b
1 changed files with 5 additions and 0 deletions
|
|
@ -273,3 +273,8 @@
|
|||
(inner_attribute_item ["!" "#"] @punctuation.special)
|
||||
(macro_invocation "!" @function.macro)
|
||||
(empty_type "!" @type.builtin)
|
||||
|
||||
(macro_invocation macro: (identifier) @_ident @exception "!" @exception
|
||||
(#eq? @_ident "panic"))
|
||||
(macro_invocation macro: (identifier) @_ident @exception "!" @exception
|
||||
(#contains? @_ident "assert"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue