aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/_typescript/highlights.scm1
-rw-r--r--runtime/queries/svelte/injections.scm10
2 files changed, 11 insertions, 0 deletions
diff --git a/runtime/queries/_typescript/highlights.scm b/runtime/queries/_typescript/highlights.scm
index 02f3aab7..a83b4347 100644
--- a/runtime/queries/_typescript/highlights.scm
+++ b/runtime/queries/_typescript/highlights.scm
@@ -88,6 +88,7 @@
"keyof"
"namespace"
"override"
+ "satisfies"
] @keyword
[
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))