elixir-editors / emacs-elixir

Emacs major mode for Elixir
448 stars 94 forks source link

Wrong indentation of case do clause with pipeline #477

Open mreyk opened 3 years ago

mreyk commented 3 years ago

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