Skip to content

Pretty-printer prints comments above a case too late #497

Closed
@marijnh

Description

@marijnh

In parser.rs, we now have...

            case (
                 //the lexer can't tell the different kinds of stars apart ) :
                 token::BINOP(token::STAR)) {
                glob = true;
                p.bump();
            }

The comment used to be above the case, but ends up being printed after the "case (" part has already been output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-prettyArea: Pretty printing (including `-Z unpretty`)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions