Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Defined function with when and without parenthesis produces incorrect indentation in body #391

Open
kcdragon opened this issue Feb 12, 2017 · 1 comment

Comments

@kcdragon
Copy link

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

def foo(x) when x + 1 > y do
  []
end

Actual

def foo(x) when x + 1 > y do
                    []
end

Note: This does not happen when x + 1 is wrapped in parenthesis

def foo(x) when (x + 1) > y do
  []
end

Versions

OS: Mac OSX Sierra
Emacs Version: GNU Emacs 25.1.1
elixir-mode: 20170102.942

@kcdragon
Copy link
Author

I created a pull request with a failing test since this was recommended in the contributing guide. See #392

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant