Skip to content

Wrong indentation of case do clause with pipeline #477

Open
@mreyk

Description

@mreyk

Hi everyone,

This issue happens with the case do. Elixir indentation should be this one:

variable
|> case do
  nil ->
    :noop
  _ ->
    :ok
end

But the elixir-mode does this, it places four spaces:

variable
|> case do
    nil ->
      :noop
    _ ->
      :ok
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions