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
This commit is contained in:
Santos Gallegos 2021-04-28 07:19:07 -05:00 committed by GitHub
parent 563616738b
commit 4a7a713c52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 46 additions and 41 deletions

View file

@ -37,3 +37,5 @@
] @punctuation.bracket
(include_statement (identifier) @function)
(single_line_comment) @comment

View file

@ -0,0 +1,3 @@
; inherits: css
(single_line_comment) @comment @combined