mirror of
https://github.com/helix-editor/helix.git
synced 2024-09-11 18:58:00 +03:00
Fix precedence of svelte typescript injection (#9777)
This commit is contained in:
parent
f04dafa2e2
commit
d769fadde0
@ -19,13 +19,6 @@
|
|||||||
(quoted_attribute_value (attribute_value) @css))
|
(quoted_attribute_value (attribute_value) @css))
|
||||||
(#eq? @_attr "style"))
|
(#eq? @_attr "style"))
|
||||||
|
|
||||||
((script_element
|
|
||||||
(raw_text) @injection.content)
|
|
||||||
(#set! injection.language "javascript"))
|
|
||||||
|
|
||||||
((raw_text_expr) @injection.content
|
|
||||||
(#set! injection.language "javascript"))
|
|
||||||
|
|
||||||
(
|
(
|
||||||
(script_element
|
(script_element
|
||||||
(start_tag
|
(start_tag
|
||||||
@ -36,5 +29,12 @@
|
|||||||
(#set! injection.language "typescript")
|
(#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
|
((comment) @injection.content
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
Loading…
Reference in New Issue
Block a user