You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to format a Rust file with Rustfmt but have the contents of a macro (html! in this case) be formatted with prettier.
This is required because Rustfmt doesn't touch anything inside a macro invocation - those tokens are ignored. html! has a syntax very similar to that to HTML so Prettier can be used for format it's contents.
Is this possible to achieve? If so, how? If not, would it be possible/feasible to add support for this?
The text was updated successfully, but these errors were encountered:
I would like to format a Rust file with Rustfmt but have the contents of a macro (
html!
in this case) be formatted with prettier.This is required because Rustfmt doesn't touch anything inside a macro invocation - those tokens are ignored.
html!
has a syntax very similar to that to HTML so Prettier can be used for format it's contents.Is this possible to achieve? If so, how? If not, would it be possible/feasible to add support for this?
The text was updated successfully, but these errors were encountered: