tree-sitter-html/queries/injections.scm

8 lines
205 B
Scheme

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