diff options
author | Siri Hansen <[email protected]> | 2012-11-21 09:29:22 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2012-11-21 09:29:22 +0100 |
commit | a545edc30363ea1ddf8b7805c38e748ed4741ffc (patch) | |
tree | a1c2e8243c8b17c8d6f18087e4d11145f52c95c3 /lib/test_server/test/erl2html2_SUITE_data/m1.erl | |
parent | ef8c1a9b7d0e9f35439fcb1e75e2e287cba53e9a (diff) | |
parent | ee65e005b0e18d92d786b14e2dd3cf7b8584ca27 (diff) | |
download | otp-a545edc30363ea1ddf8b7805c38e748ed4741ffc.tar.gz otp-a545edc30363ea1ddf8b7805c38e748ed4741ffc.tar.bz2 otp-a545edc30363ea1ddf8b7805c38e748ed4741ffc.zip |
Merge branch 'siri/test_server/erl2html-indent-problem/OTP-9710'
* siri/test_server/erl2html-indent-problem/OTP-9710:
[test_server] Minimize memory usage in erl2html2:convert/[2,3]
[test_server] Fix erl2html2.erl to handle badly indented files
Diffstat (limited to 'lib/test_server/test/erl2html2_SUITE_data/m1.erl')
-rw-r--r-- | lib/test_server/test/erl2html2_SUITE_data/m1.erl | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/test_server/test/erl2html2_SUITE_data/m1.erl b/lib/test_server/test/erl2html2_SUITE_data/m1.erl new file mode 100644 index 0000000000..156f1d0a51 --- /dev/null +++ b/lib/test_server/test/erl2html2_SUITE_data/m1.erl @@ -0,0 +1,46 @@ +%% Comment with <html> code & </html> +%% and also some "quotes" and 'single quotes' + +-module(m1). + +-compile(export_all). + +-include("header1.hrl"). +-include("header2.hrl"). + +-define(MACRO1,value). + +%%% Comment +foo(x) -> + %% Comment + ok_x; +foo(y) -> + %% Second clause + ok_y. + +'quoted_foo'() -> + ok. + +'quoted_foo_with_"_and_/'() -> + ok. + +'quoted_foo_with_(_and_)'() -> + ok. + +'quoted_foo_with_<_and_>'() -> + ok. + +bar() -> + do_something(), +ok. % indentation error, OTP-9710 + +%% Function inside macro definition +?MACRO_DEFINING_A_FUNCTION. + +%% Two function one one line +quuux() -> ok. quuuux() -> ok. + +%% do_something/0 does something +do_something() -> + ?MACRO1. +%% comments after last line |