|
PR #8603 adds html grammar inside rust aliasing works but maudfmt doesn't work. because it expects |
Replies: 1 comment 1 reply
|
Use a local Rust injection-query override and narrow the ((macro_invocation
macro: (identifier) @_macro_name
(token_tree) @injection.content)
(#eq? @_macro_name "html")
(#set! injection.language "html")
(#set! injection.include-children))That still injects HTML for bare |


Use a local Rust injection-query override and narrow the
htmlrule to an unqualified macro. Copy theinjections.scmfrom the runtime matching your installed Helix version to~/.config/helix/runtime/queries/rust/injections.scm, then replace only thehtmlblock with:That still injects HTML for bare
html!, but no longer matchesmaud::html!, whose macro is ascoped_identifier. Keep the other rules in the copied file so Rustdoc, regex, SQL, etc. continue working. Helix documentsinjections.scmas the lang…