1((line_comment) @injection.content
2 (#set! injection.language "comment"))
3
4(macro_invocation
5 macro: [(identifier) (scoped_identifier)] @_macro_name
6 (#not-any-of? @_macro_name "view" "html")
7 (token_tree) @injection.content
8 (#set! injection.language "rust"))
9
10; we need a better way for the leptos extension to declare that
11; it wants to inject inside of rust, instead of modifying the rust
12; injections to support leptos injections
13(macro_invocation
14 macro: [(identifier) (scoped_identifier)] @_macro_name
15 (#any-of? @_macro_name "view" "html")
16 (token_tree) @injection.content
17 (#set! injection.language "rstml")
18 )