From 239bb86b54d07a955caa0200053484298879ca59 Mon Sep 17 00:00:00 2001 From: Iron-E <36409591+Iron-E@users.noreply.github.com> Date: Thu, 4 May 2023 19:49:20 +0000 Subject: [PATCH] feat(rust): capture debug macros as `@debug` * ref(rust): highlight debug macros as `@debug` E.g. `dbg!` and `debug_assert!` * Update queries/rust/highlights.scm Co-authored-by: Amaan Qureshi --------- Co-authored-by: Amaan Qureshi --- queries/rust/highlights.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index 5eb6d97b8..4554db022 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -306,3 +306,5 @@ (#eq? @_ident "panic")) (macro_invocation macro: (identifier) @_ident @exception "!" @exception (#contains? @_ident "assert")) +(macro_invocation macro: (identifier) @_ident @debug "!" @debug + (#eq? @_ident "dbg"))