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

Wrong indentation of the last key in a multiline maps on the match side within case statements #297

Closed
gausby opened this issue Dec 2, 2015 · 1 comment

Comments

@gausby
Copy link
Contributor

gausby commented Dec 2, 2015

Wrong indentation of the last key in a multiline maps on the match side within case statements.

Current:

case statement do
  %{"foo" => "foo",
     "baz" => "baz"} ->
    :ok

  _ ->
    :ok
end

Expected.

case statement do
  %{"foo" => "foo",
    "baz" => "baz"} ->
    :ok

  _ ->
    :ok
end

Notice the extra space before the "baz" key in the current example.

I would mark this issue as low priority, but it is better to report it :)

A pull request with a unit test is coming up

@mattdeboard
Copy link
Contributor

This is also a specific case of #229, since do is a function.

@mattdeboard mattdeboard added duplicate and removed bug labels Jan 2, 2016
J3RN pushed a commit to J3RN/emacs-elixir that referenced this issue Apr 24, 2021
* Directly warn user when mixfile is not found

Without all three types of warnings it can be easy to miss this error,
especially if the file that you have open is not mix.exs

* Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants