mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
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 <amaanq12@gmail.com> --------- Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
This commit is contained in:
parent
31d2f60734
commit
239bb86b54
1 changed files with 2 additions and 0 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue