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 Desdaemon committed Mar 4, 2024
1 parent b226399 commit 23ee6af
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 23ee6af

Please sign in to comment.