Skip to content

Commit

Permalink
Fix precedence of svelte typescript injection (#9777)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored Mar 2, 2024
1 parent f04dafa commit d769fad
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions runtime/queries/svelte/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
(quoted_attribute_value (attribute_value) @css))
(#eq? @_attr "style"))

((script_element
(raw_text) @injection.content)
(#set! injection.language "javascript"))

((raw_text_expr) @injection.content
(#set! injection.language "javascript"))

(
(script_element
(start_tag
Expand All @@ -36,5 +29,12 @@
(#set! injection.language "typescript")
)

((script_element
(raw_text) @injection.content)
(#set! injection.language "javascript"))

((raw_text_expr) @injection.content
(#set! injection.language "javascript"))

((comment) @injection.content
(#set! injection.language "comment"))

0 comments on commit d769fad

Please sign in to comment.