Change summary
crates/languages/src/rust/injections.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Detailed changes
@@ -2,7 +2,7 @@
(#set! injection.language "comment"))
(macro_invocation
- macro: (identifier) @_macro_name
+ macro: [(identifier) (scoped_identifier)] @_macro_name
(#not-any-of? @_macro_name "view" "html")
(token_tree) @injection.content
(#set! injection.language "rust"))
@@ -11,7 +11,7 @@
; it wants to inject inside of rust, instead of modifying the rust
; injections to support leptos injections
(macro_invocation
- macro: (identifier) @_macro_name
+ macro: [(identifier) (scoped_identifier)] @_macro_name
(#any-of? @_macro_name "view" "html")
(token_tree) @injection.content
(#set! injection.language "rstml")