nvim-treesitter/queries/rust/injections.scm
2021-06-21 08:52:38 +02:00

21 lines
308 B
Scheme

(macro_invocation
(token_tree) @rust)
(macro_definition
(macro_rule
left: (token_tree_pattern) @rust
right: (token_tree) @rust))
[
(line_comment)
(block_comment)
] @comment
(
(macro_invocation
macro: ((identifier) @_html_def)
(token_tree) @html)
(#eq? @_html_def "html")
)