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

Auto indentation bug

derekchiang opened this issue · comments

Hello,

Consider this piece of code indented by SublimeErl:

put(Pid, X) ->
    Pid ! {self(), {put, X}},
    receive
        {Pid, Msg} -> Msg
    after 3000 ->
            timeout
    end.

IMHO, timeout should be indented at the same level as {Pid, Msg} -> Msg.