mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-27 17:04:31 +00:00
Fix Rust macro_invocation injections (#40534)
Closes #40317 Release Notes: - N/A
This commit is contained in:
parent
3d6722be9a
commit
e702df21a4
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue