nvim-treesitter/queries/svelte/injections.scm

29 lines
548 B
Scheme
Raw Normal View History

; inherits: html_tags
2021-02-05 13:45:26 +07:00
(
(style_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_lang)))
(raw_text) @scss)
(#any-of? @_lang "scss" "postcss" "less")
)
((attribute
(attribute_name) @_attr
(quoted_attribute_value (attribute_value) @css))
2021-02-11 15:00:14 +07:00
(#eq? @_attr "style"))
(raw_text_expr) @javascript
2021-02-05 13:45:26 +07:00
(
(script_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_lang)))
(raw_text) @typescript)
(#any-of? @_lang "ts" "typescript")
2021-02-05 13:45:26 +07:00
)
(comment) @comment