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

Correct indentation after "for" comprehension #260

Merged
merged 1 commit into from
Sep 16, 2015

Conversation

tonini
Copy link
Contributor

@tonini tonini commented Sep 16, 2015

Example

defmodule Hello do
  def hi do
    hi = for i <- list, do: i
    # weird spacing now <- Correct indentation

    for i <- list, do: i
    IO.puts 'WORKED' # <-  Correct indentation
  end
end

fixes #256

Example

defmodule Hello do
  def hi do
    hi = for i <- list, do: i
    # weird spacing now <- Correct indentation

    for i <- list, do: i
    IO.puts 'WORKED' # <- Correct indentation
  end
end
tonini added a commit that referenced this pull request Sep 16, 2015
Correct indentation after "for" comprehension
@tonini tonini merged commit f68b762 into master Sep 16, 2015
@tonini tonini deleted the correct-indent-for-oneline branch September 16, 2015 06:45
J3RN pushed a commit to J3RN/emacs-elixir that referenced this pull request Apr 24, 2021
…ors#260)

* Switch to new supervisor format introduced in Elixir 1.5

* update changelog
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

Successfully merging this pull request may close these issues.

Comprehension (mis)indentation
1 participant