mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
Fix panic!, assert*!, and dbg! macro queries.
This commit is contained in:
parent
53a6b3993f
commit
55ae574195
1 changed files with 6 additions and 6 deletions
|
|
@ -458,19 +458,19 @@
|
||||||
"!" @type.builtin)
|
"!" @type.builtin)
|
||||||
|
|
||||||
(macro_invocation
|
(macro_invocation
|
||||||
macro: (identifier) @keyword.exception
|
macro: (identifier) @_identifier @keyword.exception
|
||||||
"!" @keyword.exception
|
"!" @keyword.exception
|
||||||
(#eq? @keyword.exception "panic"))
|
(#eq? @_identifier "panic"))
|
||||||
|
|
||||||
(macro_invocation
|
(macro_invocation
|
||||||
macro: (identifier) @keyword.exception
|
macro: (identifier) @_identifier @keyword.exception
|
||||||
"!" @keyword.exception
|
"!" @keyword.exception
|
||||||
(#contains? @keyword.exception "assert"))
|
(#contains? @_identifier "assert"))
|
||||||
|
|
||||||
(macro_invocation
|
(macro_invocation
|
||||||
macro: (identifier) @keyword.debug
|
macro: (identifier) @_identifier @keyword.debug
|
||||||
"!" @keyword.debug
|
"!" @keyword.debug
|
||||||
(#eq? @keyword.debug "dbg"))
|
(#eq? @_identifier "dbg"))
|
||||||
|
|
||||||
; Comments
|
; Comments
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue