Skip to content

Handle macro arguments which exceeds max width #2542

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

Merged
merged 9 commits into from
Mar 19, 2018

Conversation

topecongiro
Copy link
Contributor

This PR adds a parser for macro arguments and handles formatting arguments even when the total width exceeds max width.

The parser heurstically parses separators. When we need to use multiple lines, we break after every separator. Also we break between metavariables.

@nrc
Copy link
Member

nrc commented Mar 18, 2018

lgtm, thanks, but needs a rebase

@topecongiro
Copy link
Contributor Author

Thank you for your review! Rebased to resolve conflicts.

@nrc nrc merged commit 5516223 into rust-lang:master Mar 19, 2018
@topecongiro topecongiro deleted the macro-2.0 branch March 19, 2018 03:48
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

Successfully merging this pull request may close these issues.

2 participants