-
Notifications
You must be signed in to change notification settings - Fork 93
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
Correct indentation for for
comprehensions
#242
Labels
Comments
FWIW, that's how I indent that kind of code as well. When I need for {k, v} <- keyword,
v = process_value(v),
into: %{} do
{v, k}
end Just for the record, maybe not the best way to do it. |
jesenko
added a commit
to jesenko/emacs-elixir
that referenced
this issue
Sep 21, 2015
Added failing tests for `for` comprehensions, related to issue elixir-editors#242.
I added failing indentation tests for the cases given above + for the case when for comprehension is combined with assignment, e.g. result =
for {k, v} <- keyword,
v = process_value(v)
into: %{} do
{v, k}
end |
jesenko
added a commit
to jesenko/emacs-elixir
that referenced
this issue
Sep 21, 2015
Added failing tests for `for` comprehensions, related to issue elixir-editors#242.
fixed by f721fb4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example:
To be honest, I'm not sure that's the correct way to indent it, but I can't think of a different one that would make sense.
The text was updated successfully, but these errors were encountered: