Skip to content

Commit

Permalink
Fix precedence of svelte typescript injection (helix-editor#9777)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored and Vulpesx committed Jun 7, 2024
1 parent b321583 commit 3b21885
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 3b21885

Please sign in to comment.