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

@ -18,7 +18,7 @@
"revision": "afdc3d5da18d42cbb471c0f40527dbed9cace7ad"
},
"astro": {
"revision": "4e766a11148e174a109851d746e8ab8fc43ef419"
"revision": "b422ccd41f0b433260a3d28df7e39fa2ff63ef9c"
},
"authzed": {
"revision": "1dec7e1af96c56924e3322cd85fdce15d0a31d00"

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