diff options
author | Jeppe Christiansen | 2023-07-14 02:42:07 +0000 |
---|---|---|
committer | GitHub | 2023-07-14 02:42:07 +0000 |
commit | bc4f08febf87c4d498971153715e30a39c61d511 (patch) | |
tree | 43c6e57bb61bb9024cb1fe95adfd6e41b51b70ac /runtime/queries/svelte | |
parent | 843ae971209d41b88b66d282979ed76303ec5e34 (diff) |
Update Typescript, TSX and Svelte grammar, to latest tag (#6874)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
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)) |