Skip to content

Conversation

@tonini
Copy link
Contributor

@tonini tonini commented Oct 24, 2015

In order to fix #281 we need to revert the behavior of do: in one line definitions when it breaks to the next line.

Example before:

defmodule Hello do
  defp skip,
    do: true

  def on?, do: true

  defmacro switch,
    do: on!

  defp self, do: value
  defmacrop whatever, do: do_it!
end

Example now:

defmodule Hello do
  defp skip,
  do: true

  def on?, do: true

  defmacro switch,
  do: on!

  defp self, do: value
  defmacrop whatever, do: do_it!
end

The indentation for macro calls with do: has more importance than the pointed examples above.

tonini added a commit that referenced this pull request Oct 24, 2015
…orrect

Indent multiple macro calls with do colon correct
@tonini tonini merged commit d26a33e into master Oct 24, 2015
@tonini tonini deleted the indent-multiple-macro-call-correct branch October 24, 2015 15:55
J3RN pushed a commit to J3RN/emacs-elixir that referenced this pull request Apr 24, 2021
Wow, we've had a bunch of contributions recently! I think we're about ready for
a new release.
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.

Correct indentation for sucessive macro calls

2 participants