elixir-editors / elixir-editors/emacs-elixir

Wrong indentation of case do clause with pipeline

Open
#477 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Emacs Lisp
Stars
454
Forks
93
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.