We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When pretty-printing code that contains macros that nest, unparse will add spaces around all the inner macro's !:
unparse
!
println!("{}", prettyplease::unparse(&syn::parse_str("foo!(bar!(baz!(toto)));").unwrap()));
will print
foo!(bar ! (baz ! (toto)));
instead of the expected
foo!(bar!(baz!(toto)));
This is quite a common pattern in codegen where such invocations are commonplace:
include_file!(concat!(env!("OUT_DIR"), "/bindings.rs"));
Thanks for the great lib!
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When pretty-printing code that contains macros that nest,
unparse
will add spaces around all the inner macro's!
:will print
instead of the expected
This is quite a common pattern in codegen where such invocations are commonplace:
Thanks for the great lib!
The text was updated successfully, but these errors were encountered: