nvim-treesitter/queries/vue/injections.scm
Hugo Osvaldo Barrera ff7ec08a1e Add support for Vue files
I haven't included parsing the `style` tag, since the only applicable
queries we have are CSS (which actually works fine for SCSS too).
2021-02-17 14:43:32 +01:00

19 lines
355 B
Scheme

((style_element
(raw_text) @css))
; There's no queries for less, sass nor postcss.
((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))