Erlang filetype and snippets improvements

* Add .hrl Erlang "header" file
* Add some useful snippets
* Add template for Erlang files as per EDocs guidelines

Closes #157
This commit is contained in:
Fabio Ticconi 2013-07-26 16:46:15 +01:00 committed by Matthew Brush
parent 0998f1c19c
commit a08f595b35
3 changed files with 22 additions and 1 deletions

View File

@ -20,7 +20,7 @@ Cython=*.pyx;*.pxd;*.pxi;
D=*.d;*.di;
Diff=*.diff;*.patch;*.rej;
Docbook=*.docbook;
Erlang=*.erl;
Erlang=*.erl;*.hrl;
F77=*.f;*.for;*.ftn;*.f77;*.F;*.FOR;*.FTN;*.fpp;*.FPP
Ferite=*.fe;
Forth=*.fs;*.fth;

View File

@ -127,3 +127,14 @@ monitor=monitor%block_cursor%handle%block%
[HTML]
table=<table>\n\t<tr>\n\t\t<td>%cursor%</td>\n\t</tr>\n</table>
[Erlang]
case=case %cursor% of\n\t%cursor% -> %cursor%\nend
if=if\n\t%cursor% -> %cursor%\nend
begin=begin\n\t%cursor%\nend
fun=fun(%cursor%) ->\n\t%cursor%\nend
try=try %cursor% of\n\t%cursor% ->\n\t%cursor%\ncatch\n\t%cursor% ->\n\t%cursor%\nend
module=-module(%cursor%).
export=-export(%cursor%).
compile=-compile(%cursor%).
include=-include(%cursor%).

View File

@ -0,0 +1,10 @@
%% ----------------------------------
%% @author {developer} <{mail}>
%% @copyright {year}
%% @doc
%% @end
%% ----------------------------------
-module().
-export([]).