aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/test
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2018-01-09 13:00:12 +0100
committerDan Gudmundsson <[email protected]>2018-03-01 14:39:49 +0100
commite57a6ec75ed99d4695fb8fcd31dd625483951687 (patch)
treeb826414affb3b67dabda17cec1e8713f11dfc43a /lib/tools/test
parentaa9054e0ea48a127f2aeafcdce1df4d1aec09574 (diff)
downloadotp-e57a6ec75ed99d4695fb8fcd31dd625483951687.tar.gz
otp-e57a6ec75ed99d4695fb8fcd31dd625483951687.tar.bz2
otp-e57a6ec75ed99d4695fb8fcd31dd625483951687.zip
emacs: Indent tuple (and maps) elements as list elements
Avoid From: { ^^element1, ^^element2 } To: { ^element1, ^element2 }
Diffstat (limited to 'lib/tools/test')
-rw-r--r--lib/tools/test/emacs_SUITE_data/funcs16
-rw-r--r--lib/tools/test/emacs_SUITE_data/records21
-rw-r--r--lib/tools/test/emacs_SUITE_data/terms31
3 files changed, 30 insertions, 38 deletions
diff --git a/lib/tools/test/emacs_SUITE_data/funcs b/lib/tools/test/emacs_SUITE_data/funcs
index 2ad9d73262..b0c9716f0e 100644
--- a/lib/tools/test/emacs_SUITE_data/funcs
+++ b/lib/tools/test/emacs_SUITE_data/funcs
@@ -79,20 +79,20 @@ match1({[H|T],
match2(
{
- [H|T],
- Other
+ [H|T],
+ Other
},
M2A2
) ->
ok.
match3({
- M3A1,
- [
- H |
- T
- ],
- Other
+ M3A1,
+ [
+ H |
+ T
+ ],
+ Other
},
M3A2
) ->
diff --git a/lib/tools/test/emacs_SUITE_data/records b/lib/tools/test/emacs_SUITE_data/records
index 545cfb15c5..241582718c 100644
--- a/lib/tools/test/emacs_SUITE_data/records
+++ b/lib/tools/test/emacs_SUITE_data/records
@@ -5,9 +5,9 @@
-record(record0,
{
- r0a,
- r0b,
- r0c
+ r0a,
+ r0b,
+ r0c
}).
-record(record1, {r1a,
@@ -16,9 +16,9 @@
}).
-record(record2, {
- r2a,
- r2b
- }).
+ r2a,
+ r2b
+ }).
-record(record3, {r3a = 8#42423 bor
8#4234,
@@ -28,15 +28,6 @@
234,
r3d}).
--record(record4, {
- r4a = 8#42423 bor
- 8#4234,
- r4b = 8#5432
- bor 2#1010101
- r4c = 123 +
- 234,
- r4d}).
-
-record(record5,
{ r5a = 1 :: integer()
, r5b = foobar :: atom()
diff --git a/lib/tools/test/emacs_SUITE_data/terms b/lib/tools/test/emacs_SUITE_data/terms
index 8bc95f2bc2..02b2d665fd 100644
--- a/lib/tools/test/emacs_SUITE_data/terms
+++ b/lib/tools/test/emacs_SUITE_data/terms
@@ -39,8 +39,8 @@ tuple(2) ->
};
tuple(3) ->
{
- a,
- b,c
+ a,
+ b,c
};
tuple(4) ->
{ a
@@ -68,22 +68,23 @@ binary(4) ->
>>.
record(1) ->
- #rec{a=1,
- b=2
- };
+ #record{a=1,
+ b=2
+ };
record(2) ->
- #rec{ a=1,
- b=2
- };
+ #record{ a=1,
+ b=2
+ };
record(3) ->
- #rec{
+ #record{
a=1,
b=2
};
record(4) ->
- #rec{a=1
- ,b=2
- }.
+ #record{
+ a=1
+ ,b=2
+ }.
map(1) ->
#{a=>1,
@@ -95,9 +96,9 @@ map(2) ->
};
map(3) ->
#{
- a=>1,
- b=>2
- };
+ a=>1,
+ b=>2
+ };
map(4) ->
#{
a => <<"a">>