injections.scm

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