Fix indentation of records with line breaks inside lists

Magnus Henoch <>
Wed May 19 00:41:37 CEST 2010

git fetch git:// fix-record-indentation

Trying to indent this piece of code by hitting TAB on each line:

foo() ->
    foo = foo}].

used to cause an error.  Fix by ignoring errors when trying to skip
backwards from a record.

Also add this test case to test.erl.orig and test.erl.indented.

Magnus Henoch, 
Erlang Solutions



Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.

More information about the erlang-patches mailing list