nvim-treesitter/queries/vue/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

32 lines
604 B
Scheme

((style_element
(raw_text) @css))
(
(style_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_lang)))
(raw_text) @scss)
(#match? @_lang "(scss|postcss|less)")
)
((script_element
(raw_text) @javascript))
(
(script_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_lang)))
(raw_text) @typescript)
(#match? @_lang "(ts|typescript)")
)
((interpolation
(raw_text) @javascript))
((directive_attribute
(quoted_attribute_value
(attribute_value) @javascript)))
(comment) @comment @combined