elixir-editors / elixir-editors/language-elixir

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

Open
#44 5 comments 1 reaction 1 assignee Claimed by @keathley View on GitHub
Dominant language
CoffeeScript
Stars
178
Forks
41
PR merge metrics
No merged PRs in 30d

Description

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

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

you get

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.