SublimErl icon indicating copy to clipboard operation
SublimErl copied to clipboard

Incorrect indentation after an arrow and after a dot.

Open AlexCzar opened this issue 11 years ago • 2 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() ->
    {}.

AlexCzar avatar Sep 01 '13 11:09 AlexCzar

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.

ostinelli avatar Sep 02 '13 18:09 ostinelli

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

AlexCzar avatar Sep 03 '13 08:09 AlexCzar