1 %% This file contains Erlang code for testing the
2 %% Erlware emacs mode. It contains functions that
3 %% use different corner cases to make sure the mode
4 %% does the right thing.
6 %% <<If comment-multi-line is on, Press Return to get another %% line>>
11 % This line should stay here after a tab.
12 % If the comment-multi-line variable is non-nil, then pressing
13 % Return at end of this line shouldto get another % line.
17 % Pressing tabs on all lines should not change indents.
23 [$
% | ["should not be highlighted as a comment"]],
27 % If you edit the font lock mode to underline function names,
28 % there should not be an underline character after the '->'.
33 module:somefun(monkey
, horse
)
35 % both these clauses should maintain their indents after tab presses
38 error:function_clause
->
44 % 'is_atom' should be highlighted as a guard above
46 % All functions below should be highlighted as functions, not
47 % as guards or bifs. So each entire function name should be
48 % highlighted in the same way.
53 % This should be highlighted as a bif.
56 % Should be highlighted as a function.