elixir-editors / elixir-editors/emacs-elixir

incorrect indentation if do is on its own line

Open
#469 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Emacs Lisp
Stars
454
Forks
93
PR merge metrics
No merged PRs in 30d

Description

The following code:

``` Elixir
defmodule Example do
def foo0
do
"0"
end

def foo1
do
"1"
end

def foo2
do
"2"
end
end
```

Is indented like this:

![image](https://user-images.githubusercontent.com/19470159/101372824-5a4e7e00-38bd-11eb-903b-09c2b794b914.png)

I know that `do` on its own line is not very common, but indentation should not grow with each definition

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.