elixir-editors / elixir-editors/emacs-elixir

Indentation of pipe operator is broken

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

Description

Indentation of the pipe operator is broken when the last line is indented. This code

~~~
def list_lines(pids) do
from(line in Line,
where: line.project_id in (^pids))
|> Repo.all
|> Repo.preload(:project)
end
~~~

should be indented as follows:

~~~
def list_lines(pids) do
from(line in Line,
where: line.project_id in (^pids))
|> Repo.all
|> Repo.preload(:project)
end
~~~

This works when the previous line is not indented:

~~~
def list_lines(pids) do
from(
line in Line,
where: line.project_id in (^pids)
)
|> Repo.all
|> Repo.preload(:project)
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.