feat(astro): update injections to match parser rewrite (#6478)

This commit is contained in:
virchau13 2024-04-20 21:31:54 +08:00 committed by GitHub
parent a005f6fec9
commit ea4f6d5175
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View file

@ -1,12 +1,16 @@
; inherits: html_tags
(frontmatter
(raw_text) @injection.content
(frontmatter_js_block) @injection.content
(#set! injection.language "typescript"))
(interpolation
(raw_text) @injection.content
(#set! injection.language "tsx"))
(attribute_interpolation
(attribute_js_expr) @injection.content
(#set! injection.language "typescript"))
(html_interpolation
(permissible_text) @injection.content
(#set! injection.language "typescript"))
(script_element
(raw_text) @injection.content