1
0
Fork 0
mirror of https://github.com/helix-editor/helix synced 2024-06-03 08:26:10 +02:00

Fix precedence of svelte typescript injection (#9777)

This commit is contained in:
Michael Davis 2024-03-02 02:47:24 -05:00 committed by GitHub
parent f04dafa2e2
commit d769fadde0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
@ -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"))