Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix Rust macro_invocation injections (#40534)
Julia Ryane702df21a4de
diff --git a/crates/languages/src/rust/injections.scm b/crates/languages/src/rust/injections.scmindex e5921501bc6..91c092b353b 100644--- a/crates/languages/src/rust/injections.scm+++ b/crates/languages/src/rust/injections.scm@@ -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")