Update glimmer injections, since the glimmer parser was updated to handle style and script separately as their own nodes

This commit is contained in:
NullVoxPopuli 2026-01-24 15:33:00 -05:00 committed by GitHub
parent 275b9fe801
commit f04b9c28ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,19 +3,12 @@
(#set! injection.language "comment"))
; <style> tags
((element_node
(element_node_start
(tag_name) @_tag_name
(#eq? @_tag_name "style"))) @injection.content
(#offset! @injection.content 0 7 0 -8)
(#set! injection.language "css")
(#set! injection.include-children))
((style_element
(raw_text) @injection.content)
(#set! injection.language "css"))
; <script> tags
((element_node
(element_node_start
(tag_name) @_tag_name
(#eq? @_tag_name "script"))) @injection.content
(#offset! @injection.content 0 8 0 -9)
(#set! injection.language "glimmer_javascript")
((script_element
(raw_text) @injection.content)
(#set! injection.language "javascript")
(#set! injection.include-children))