Fix Rust macro_invocation injections (#40534)
Closes #40317 Release Notes: - N/A
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user