Skip to content

Lines -> Auto Indent (editor:auto-indent) misinterprets case branches #44

Description

@p-kraszewski

atom: ver 1.6.0-beta6-8bd4c99
language-elixir: ver 0.11.1

It seems auto-indent does not properly unindent branches of case.

Instead of

defmodule Demo do
  def demo(value) do
    case value do
      :one ->
        do_one
      :two ->
        do_two
      :three ->
        do_three
    end
  end
end

you get

defmodule Demo do
  def demo(value) do
    case value do
      :one ->
        do_one
        :two ->
          do_two
          :three ->
            do_three
          end
        end
      end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions