Skip to main content

format_euv_macros

Function format_euv_macros 

Source
pub fn format_euv_macros(source: &str) -> String
Expand description

Finds and reformats all euv macro invocations in the source text.

Uses a character-level scanner to locate macro calls (e.g., html! { ... }), tracks brace depth to find the complete macro body, then formats the body using format_macro_body.

§Arguments

  • &str - The Rust source code content.

§Returns

  • String - The source with all euv macros reformatted.