aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/test/emacs_SUITE_data/macros
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2018-03-01 15:00:02 +0100
committerDan Gudmundsson <[email protected]>2018-03-01 15:00:02 +0100
commitcc0a308533b38371e4a7fe8caa9c9e65bd15cc26 (patch)
tree880e0de93dfe345594aad6e0ba8d805a568675a5 /lib/tools/test/emacs_SUITE_data/macros
parent3bba476ad0df599050ccfc0826856111f5ff1bde (diff)
parentaf960d82c5b8322a40bddc4bc08897b7e2d95463 (diff)
downloadotp-cc0a308533b38371e4a7fe8caa9c9e65bd15cc26.tar.gz
otp-cc0a308533b38371e4a7fe8caa9c9e65bd15cc26.tar.bz2
otp-cc0a308533b38371e4a7fe8caa9c9e65bd15cc26.zip
Merge branch 'maint'
* maint: emacs: delimiter first in icr works emacs: Indent delimiter first in term elements correctly emacs: Indent tuple (and maps) elements as list elements Add emacs indention testcase
Diffstat (limited to 'lib/tools/test/emacs_SUITE_data/macros')
-rw-r--r--lib/tools/test/emacs_SUITE_data/macros31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/tools/test/emacs_SUITE_data/macros b/lib/tools/test/emacs_SUITE_data/macros
new file mode 100644
index 0000000000..6c874e9187
--- /dev/null
+++ b/lib/tools/test/emacs_SUITE_data/macros
@@ -0,0 +1,31 @@
+%% -*- Mode: erlang; indent-tabs-mode: nil -*-
+%% Copyright Ericsson AB 2017. All Rights Reserved.
+
+%%% Macros should be indented as code
+
+-define(M0, ok).
+
+-define(M1,
+ case X of
+ undefined -> error;
+ _ -> ok
+ end).
+
+-define(M2(M2A1,
+ M2A2),
+ func(M2A1,
+ M2A2)
+ ).
+
+-define(
+ M3,
+ undefined
+ ).
+
+-ifdef(DEBUG).
+-define(LOG,
+ logger:log(?MODULE,?LINE)
+ ).
+-else().
+-define(LOG, ok).
+-endif().