feat: add scss injection for svelte/vue

This commit is contained in:
elianiva 2021-03-29 06:30:31 +07:00 committed by Stephan Seitz
parent 8ac8f2c39b
commit ffbf8f19a4
2 changed files with 17 additions and 1 deletions

View file

@ -1,6 +1,15 @@
((style_element
(raw_text) @css))
(
(style_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_lang)))
(raw_text) @scss)
(#match? @_lang "(scss|postcss|less)")
)
((attribute
(attribute_name) @_attr
(quoted_attribute_value (attribute_value) @css))

View file

@ -1,7 +1,14 @@
((style_element
(raw_text) @css))
; There's no queries for less, sass nor postcss.
(
(style_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_lang)))
(raw_text) @scss)
(#match? @_lang "(scss|postcss|less)")
)
((script_element
(raw_text) @javascript))