Skip to content

Maps with string keys don't indent properly #359

Closed
@danielberkompas

Description

@danielberkompas

Operating System: El Capitan
Emacs: 24.5.1
elixir-mode: 2.3.1 (20160511.2327)

When I try to type a map with string keys, like so:

  %{
    "data" => %{
      "foo" => %{
        "bar" => nil
      }
   }

I get this indentation:

  %{
    "data" => %{
  "foo" => %{
"bar" => nil
}
}
  }

However, it works properly when the keys are atoms:

  %{
    data: %{
      foo: %{
        bar: nil
      }
    }
  }

Metadata

Metadata

Assignees

No one assigned

    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