nvim-treesitter/queries/rust/injections.scm
Santos Gallegos 4a7a713c52
Comment: use @combined to create just one tree per buffer (#1252)
* Comment: use `@combined` to create just one tree per buffer

There is no need to create a tree per line/block for comments.
Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251

* Add injections for scss

* Fix jsonc

* Combine jsdoc
2021-04-28 07:19:07 -05:00

12 lines
201 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 @combined