Closed carlca closed 8 months ago
It takes a list of identifiers, so change macro_names = ["yew::html, html"]
to macro_names = ["yew::html", "html"]
Note that it is not guaranteed to work with yew's macro at all unless they use the rstml
library (or the exact same syntax which is unlikely). You can read the syntax here: https://github.com/rs-tml/rstml, if it is not parsable by rstml
's parser, it won't format.
If you decide to give it a try, let me know how it goes!
Thanks for the reply! As it turns out, there is a tool called yew-fmt
which does exactly what I need (after wrapping it in a crafty shell script to work recursively through a project's Rust files)!
https://crates.io/crates/yew-fmt
I would really like to use your
leptosfmt
to reformatyew
files containinghtml!
macros. I tried it out with aleptosfmt.toml
file containing...but the source doesn't seem to change. This is the source I am trying to reformat...
Any ideas?