highlights(rust): panic!() and assert!() as @exception

This commit is contained in:
Cormac Relf 2022-10-18 13:02:22 +02:00 committed by Christian Clason
parent ae104a057f
commit 8c7ffaf66b

View file

@ -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"))