Fix indentation of records with line breaks inside lists

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


git fetch git://github.com/legoscia/otp.git fix-record-indentation

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

foo() ->
    [#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
http://www.erlang-solutions.com/
---------------------------------------------------

---------------------------------------------------

WE'VE CHANGED NAMES!

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

www.erlang-solutions.com



More information about the erlang-patches mailing list