Skip to content

Wrong indentation of the last key in a multiline maps on the match side within case statements #297

@gausby

Description

@gausby

Wrong indentation of the last key in a multiline maps on the match side within case statements.

Current:

case statement do
  %{"foo" => "foo",
     "baz" => "baz"} ->
    :ok

  _ ->
    :ok
end

Expected.

case statement do
  %{"foo" => "foo",
    "baz" => "baz"} ->
    :ok

  _ ->
    :ok
end

Notice the extra space before the "baz" key in the current example.

I would mark this issue as low priority, but it is better to report it :)

A pull request with a unit test is coming up

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions