mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-11 16:00:02 -04:00
feat(astro): update injections to match parser rewrite (#6478)
This commit is contained in:
parent
a005f6fec9
commit
ea4f6d5175
2 changed files with 9 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue