Branch: refs/heads/master Author: Fabio Ticconi fabio.ticconi@gmail.com Committer: Matthew Brush matt@geany.org Date: Thu, 15 Aug 2013 05:19:14 UTC Commit: a08f595b359361c5c0c28cb52fed4fd0f3daa231 https://github.com/geany/geany/commit/a08f595b359361c5c0c28cb52fed4fd0f3daa2...
Log Message: ----------- 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
Modified Paths: -------------- data/filetype_extensions.conf data/snippets.conf data/templates/files/module.erl
Modified: data/filetype_extensions.conf 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -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;
Modified: data/snippets.conf 11 files changed, 11 insertions(+), 0 deletions(-) =================================================================== @@ -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%).
Modified: data/templates/files/module.erl 10 files changed, 10 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,10 @@ +%% ---------------------------------- +%% @author {developer} <{mail}> +%% @copyright {year} +%% @doc +%% @end +%% ---------------------------------- + +-module(). +-export([]). +
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).