elixir-editors / elixir-editors/emacs-elixir
Indentation of pipe operator is broken
Open
- 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
Assessment
This issue has not been assessed yet.