Fix Rust macro_invocation injections (#40534)

Closes #40317

Release Notes:

- N/A
This commit is contained in:
Julia Ryan
2025-10-17 18:33:00 -07:00
committed by GitHub
parent 3d6722be9a
commit e702df21a4

View File

@@ -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")