Skip to content

cond blocks inside with/1 seems to indent to wrong level #319

Open
@gausby

Description

@gausby

I would assume that a cond-block should be indended by one level when used within a with/1, but it seems to be on the same line as the content on the left side of the arrow.

Current:

with(
  foo <-
  cond do
    bar ->
      bar

    baz ->
      baz
  end,
  do: :ok
)

Expected:

with(
  foo <-
    cond do
      bar ->
        bar

      baz ->
        baz
    end,
  do: :ok
)

I can provide a failing unit test if others agree that my expected indentation in fact should be the expected indentation.

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