Skip to content

Pretty-printer does disambiguation of 'do' that is no longer necessary #2774

Closed

Description

@brson

See pretty/block-arg-disambig, pretty/disamb-stmt-expr

Activity

  1. emberian commented on Jul 7, 2013

    @emberian
    Contributor

    Still relevant

  2. brson commented on Aug 19, 2013

    @brson
    ContributorAuthor

    The issue is that do pretty prints as (do foo { }), with parens.

  3. catamorphism commented on Aug 19, 2013

    @catamorphism
    Contributor

    I believe this is no longer an issue; when I added expr_paren to the AST, I removed all cases where the pretty-printer inserts parens. Closing.

  4. added a commit that references this issue on Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-prettyArea: Pretty printing (including `-Z unpretty`)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions