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

Improve token stream pretty printing. #97340

Commits on May 24, 2022

  1. Improve token stream pretty printing.

    Specifically:
    - No space before or after `::`, e.g. `a::b` instead of `a :: b`.
    - No space between `!` and `(`, e.g. `foo!()` instead of `foo! ()`.
    - No space between `!` and `[`, e.g. `#![...]` instead of `#! [...]`.
    - No space before `:`, e.g. `a: u32` instead of `a : u32`.
    - No space before `;`, e.g. `struct A;` instead of `struct A ;`.
    nnethercote committed May 24, 2022
    Configuration menu
    Copy the full SHA
    20d4424 View commit details
    Browse the repository at this point in the history