tree-sitter-html/queries/injections.scm

8 lines
177 B
Scheme

((script_element
(raw_text) @injection.content)
(#set! injection.language "javascript"))
((style_element
(raw_text) @injection.content)
(#set! injection.language "css"))