Kaydet (Commit) a08f595b authored tarafından Fabio Ticconi's avatar Fabio Ticconi Kaydeden (comit) Matthew Brush

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
üst 0998f1c1
......@@ -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;
......
......@@ -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%).
%% ----------------------------------
%% @author {developer} <{mail}>
%% @copyright {year}
%% @doc
%% @end
%% ----------------------------------
-module().
-export([]).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment