aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/emacs/test.erl.indented
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2012-06-25 12:22:23 +0200
committerHenrik Nord <[email protected]>2012-06-25 12:22:23 +0200
commitb81fcd916e10ca10f3e65c02f005bfe770275dce (patch)
treedb75409ce4f15ccdb58e043976e747b3cda205d4 /lib/tools/emacs/test.erl.indented
parent45e610c954a4ae028b4eb67c1545745b6dacab73 (diff)
parent5143056cbce54719e4ae739d2d85512d867fe264 (diff)
downloadotp-b81fcd916e10ca10f3e65c02f005bfe770275dce.tar.gz
otp-b81fcd916e10ca10f3e65c02f005bfe770275dce.tar.bz2
otp-b81fcd916e10ca10f3e65c02f005bfe770275dce.zip
Merge branch 'maint'
Diffstat (limited to 'lib/tools/emacs/test.erl.indented')
-rw-r--r--lib/tools/emacs/test.erl.indented38
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/tools/emacs/test.erl.indented b/lib/tools/emacs/test.erl.indented
index 2948ccf1b5..e0593c6522 100644
--- a/lib/tools/emacs/test.erl.indented
+++ b/lib/tools/emacs/test.erl.indented
@@ -657,3 +657,41 @@ indent_comprehensions() ->
foo() ->
[#foo{
foo = foo}].
+
+%% Record indentation
+some_function_with_a_very_long_name() ->
+ #'a-long-record-name-like-it-sometimes-is-with-asn.1-records'{
+ field1=a,
+ field2=b},
+ case dummy_function_with_a_very_very_long_name(x) of
+ #'a-long-record-name-like-it-sometimes-is-with-asn.1-records'{
+ field1=a,
+ field2=b} ->
+ ok;
+ Var = #'a-long-record-name-like-it-sometimes-is-with-asn.1-records'{
+ field1=a,
+ field2=b} ->
+ Var#'a-long-record-name-like-it-sometimes-is-with-asn.1-records'{
+ field1=a,
+ field2=b};
+ #xyz{
+ a=1,
+ b=2} ->
+ ok
+ end.
+
+another_function_with_a_very_very_long_name() ->
+ #rec{
+ field1=1,
+ field2=1}.
+
+some_function_name_xyz(xyzzy, #some_record{
+ field1=Field1,
+ field2=Field2}) ->
+ SomeVariable = f(#'Some-long-record-name'{
+ field_a = 1,
+ 'inter-xyz-parameters' =
+ #'Some-other-very-long-record-name'{
+ field2 = Field1,
+ field2 = Field2}}),
+ {ok, SomeVariable}.