aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/test/emacs_SUITE_data/macros
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2018-03-01 14:55:17 +0100
committerDan Gudmundsson <[email protected]>2018-03-01 14:55:17 +0100
commitaf960d82c5b8322a40bddc4bc08897b7e2d95463 (patch)
tree8e8fca2f9c979becb4a4779559ae0174d072dfd5 /lib/tools/test/emacs_SUITE_data/macros
parent693315d23293cb107c2ad7e50960dee40d7a3ca9 (diff)
parent13f1dec0220d44e5178feb52cf076dbdebaa23a0 (diff)
downloadotp-af960d82c5b8322a40bddc4bc08897b7e2d95463.tar.gz
otp-af960d82c5b8322a40bddc4bc08897b7e2d95463.tar.bz2
otp-af960d82c5b8322a40bddc4bc08897b7e2d95463.zip
Merge branch 'dgud/tools/emacs/indent-tests' into maint
* dgud/tools/emacs/indent-tests: 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 OTP-14944
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().