ostinelli / SublimErl

An Erlang Plugin for Sublime Text 2, which enables code completion and allows you to run tests within the editor itself.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect indentation after an arrow and after a dot.

AlexCzar opened this issue · comments

Example for arrow

How it is

some_method() ->
{}.

How it should be

some_method() ->
    {}.

Example for dot (and arrow)

How it is

some_method() ->
    {}.
    some_other_method() ->
    {}.

How it should be

some_method() ->
    {}.
some_other_method() ->
    {}.

Thank you for reporting this.

The formatter has been licensed from vimerl, you can find it here:
https://github.com/jimenezrick/vimerl/blob/master/indent/erlang_indent.erl

Please report a bug there, I'll get the most updated version asap.

I have vimerl installed and it does not demonstrate the behaviour I described here, code is indented correctly with vim+vimerl.