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:
parent
0998f1c19c
commit
a08f595b35
@ -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%).
|
||||
|
10
data/templates/files/module.erl
Normal file
10
data/templates/files/module.erl
Normal file
@ -0,0 +1,10 @@
|
||||
%% ----------------------------------
|
||||
%% @author {developer} <{mail}>
|
||||
%% @copyright {year}
|
||||
%% @doc
|
||||
%% @end
|
||||
%% ----------------------------------
|
||||
|
||||
-module().
|
||||
-export([]).
|
||||
|
Loading…
x
Reference in New Issue
Block a user