Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation of pipe operator is broken #401

Open
ckruse opened this issue Jul 27, 2017 · 1 comment
Open

Indentation of pipe operator is broken #401

ckruse opened this issue Jul 27, 2017 · 1 comment

Comments

@ckruse
Copy link

ckruse commented Jul 27, 2017

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
@ckruse
Copy link
Author

ckruse commented Oct 4, 2017

Ok, what do we have to do to support bug fixing?

I'm sorry that I could not create pull requests, but I don't know anything about smie and the code of elixir-smie.el seems really complex to me; despite trying to get a clue I was not able to understand what's happening.

J3RN pushed a commit to J3RN/emacs-elixir that referenced this issue Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant