1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:20:05 +08:00
SpaceVim/bundle/nvim-treesitter/queries/vue/injections.scm
2022-04-14 12:01:23 +08:00

38 lines
693 B
Scheme
Vendored

; inherits: html_tags
(
(style_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_lang)))
(raw_text) @scss)
(#any-of? @_lang "scss" "postcss" "less")
)
(
(script_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_lang)))
(raw_text) @typescript)
(#any-of? @_lang "ts" "typescript")
)
((interpolation
(raw_text) @javascript))
((directive_attribute
(quoted_attribute_value
(attribute_value) @javascript)))
(
(template_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_lang)))
(text) @pug)
(#eq? @_lang "pug")
)
(comment) @comment