mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(glimmer) update injections
This commit is contained in:
parent
275b9fe801
commit
67b3ce0529
1 changed files with 6 additions and 13 deletions
|
|
@ -3,19 +3,12 @@
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
|
||||||
; <style> tags
|
; <style> tags
|
||||||
((element_node
|
((style_element
|
||||||
(element_node_start
|
(raw_text) @injection.content)
|
||||||
(tag_name) @_tag_name
|
(#set! injection.language "css"))
|
||||||
(#eq? @_tag_name "style"))) @injection.content
|
|
||||||
(#offset! @injection.content 0 7 0 -8)
|
|
||||||
(#set! injection.language "css")
|
|
||||||
(#set! injection.include-children))
|
|
||||||
|
|
||||||
; <script> tags
|
; <script> tags
|
||||||
((element_node
|
((script_element
|
||||||
(element_node_start
|
(raw_text) @injection.content)
|
||||||
(tag_name) @_tag_name
|
(#set! injection.language "javascript")
|
||||||
(#eq? @_tag_name "script"))) @injection.content
|
|
||||||
(#offset! @injection.content 0 8 0 -9)
|
|
||||||
(#set! injection.language "glimmer_javascript")
|
|
||||||
(#set! injection.include-children))
|
(#set! injection.include-children))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue