Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting part of a Rust file with a prettier #26

Open
ranile opened this issue May 29, 2022 · 0 comments
Open

Formatting part of a Rust file with a prettier #26

ranile opened this issue May 29, 2022 · 0 comments

Comments

@ranile
Copy link

ranile commented May 29, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant