summaryrefslogtreecommitdiff
path: root/queries/rust
diff options
context:
space:
mode:
Diffstat (limited to 'queries/rust')
-rw-r--r--queries/rust/highlights.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm
index 3df682c3..01a62773 100644
--- a/queries/rust/highlights.scm
+++ b/queries/rust/highlights.scm
@@ -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"))