aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/test/emacs_SUITE_data/comments
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2017-12-20 10:33:56 +0100
committerDan Gudmundsson <[email protected]>2018-03-01 13:37:13 +0100
commitaa9054e0ea48a127f2aeafcdce1df4d1aec09574 (patch)
tree7950c22586d9539ac9451a88f49b00139fe9a457 /lib/tools/test/emacs_SUITE_data/comments
parent31782c3accacafb20bc7efd46004921aea8f9f22 (diff)
downloadotp-aa9054e0ea48a127f2aeafcdce1df4d1aec09574.tar.gz
otp-aa9054e0ea48a127f2aeafcdce1df4d1aec09574.tar.bz2
otp-aa9054e0ea48a127f2aeafcdce1df4d1aec09574.zip
Add emacs indention testcase
Split the manual testcase and run them in daily tests instead. Easy to run directly as well: (cd ../test; cerl -eval "emacs_SUITE:indent([])")
Diffstat (limited to 'lib/tools/test/emacs_SUITE_data/comments')
-rw-r--r--lib/tools/test/emacs_SUITE_data/comments25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/tools/test/emacs_SUITE_data/comments b/lib/tools/test/emacs_SUITE_data/comments
new file mode 100644
index 0000000000..ff974ca295
--- /dev/null
+++ b/lib/tools/test/emacs_SUITE_data/comments
@@ -0,0 +1,25 @@
+%% -*- Mode: erlang; indent-tabs-mode: nil -*-
+%% Copyright Ericsson AB 2017. All Rights Reserved.
+
+%%% 3 comment chars: always left indented
+%%% 2 comment chars: Context indented
+%%% 1 comment char: Rigth indented
+
+%%% left
+%% context dependent
+ % rigth
+
+func() ->
+%%% left
+ %% context dependent
+ % right indented
+ case get(foo) of
+ undefined ->
+ %% Testing indention
+ ok;
+ %% Catch all
+ Other ->
+ Other
+ end,
+ ok.
+