diff options
Diffstat (limited to 'runtime/queries/svelte')
-rw-r--r-- | runtime/queries/svelte/injections.scm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/queries/svelte/injections.scm b/runtime/queries/svelte/injections.scm index 04e860cf..65a6e0e4 100644 --- a/runtime/queries/svelte/injections.scm +++ b/runtime/queries/svelte/injections.scm @@ -4,6 +4,16 @@ (raw_text) @injection.content) (#set! injection.language "css")) +((style_element + (start_tag + (attribute + (attribute_name) @_attr + (quoted_attribute_value (attribute_value) @_lang))) + (raw_text) @injection.content) + (#eq? @_attr "lang") + (#match? @_lang "scss") + (#set! injection.language "scss")) + ((attribute (attribute_name) @_attr (quoted_attribute_value (attribute_value) @css)) |