Open kcdragon opened 7 years ago
When I have a defined, multi-line function and a when with multiple operators without parenthesis, the function body is not indented properly.
when
Expected
def foo(x) when x + 1 > y do [] end
Actual
Note: This does not happen when x + 1 is wrapped in parenthesis
x + 1
def foo(x) when (x + 1) > y do [] end
OS: Mac OSX Sierra Emacs Version: GNU Emacs 25.1.1 elixir-mode: 20170102.942
I created a pull request with a failing test since this was recommended in the contributing guide. See #392
Description
When I have a defined, multi-line function and a
when
with multiple operators without parenthesis, the function body is not indented properly.Example
Expected
Actual
Note: This does not happen when
x + 1
is wrapped in parenthesisVersions
OS: Mac OSX Sierra Emacs Version: GNU Emacs 25.1.1 elixir-mode: 20170102.942