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.
24 [$
% | ["should not be highlighted as a comment"]],
28 % If you edit the font lock mode to underline function names,
29 % there should not be an underline character after the '->'.
34 module:somefun(monkey
, horse
)
36 % both these clauses should maintain their indents after tab presses
39 error:function_clause
->
45 % 'is_atom' should be highlighted as a guard above
47 % All functions below should be highlighted as functions, not
48 % as guards or bifs. So each entire function name should be
49 % highlighted in the same way.
54 % This should be highlighted as a bif.
57 % Should be highlighted as a function.
61 % anatom should be highlighted as an atom, not a string
63 % this comment should be highlighted as a comment
64 % following should be highlighted as a string, should indent on tab