Skip to content

Emacs mode indentation is incorrect in several common cases #8787

Closed
@nikomatsakis

Description

@nikomatsakis

There are several common cases where the emacs mode gets the indentation incorrect. I'll list the examples as I believe they should be formatted.

  1. One indent after open paren with no argument:
call_to_func(
    a,
    b,
    c)
  1. Align -> with arguments:
fn a_func_decl(a: int,
               b: int)
               -> int {
}
  1. Align field names:
foo(SomeStructName { a: int,
                     b: int })
foo(SomeStructName {a: int,
                    b: int})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions