aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJeppe Christiansen2023-07-14 02:42:07 +0000
committerGitHub2023-07-14 02:42:07 +0000
commitbc4f08febf87c4d498971153715e30a39c61d511 (patch)
tree43c6e57bb61bb9024cb1fe95adfd6e41b51b70ac /runtime
parent843ae971209d41b88b66d282979ed76303ec5e34 (diff)
Update Typescript, TSX and Svelte grammar, to latest tag (#6874)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
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))