From a241be10cc5030498fa616a5b3cb2dfb2b83aea8 Mon Sep 17 00:00:00 2001 From: Serhiy Oplakanets Date: Mon, 6 Feb 2012 15:36:44 +0200 Subject: [PATCH 1/2] Add 'todo' and some useful EDoc snippets. --- snippets/erlang.snippets | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/snippets/erlang.snippets b/snippets/erlang.snippets index 7238149..14f2971 100644 --- a/snippets/erlang.snippets +++ b/snippets/erlang.snippets @@ -37,3 +37,28 @@ snippet case snippet rec -record(${1:record}, { ${2:field}=${3:value}}).${4} + +# todo comment +snippet todo + %% TODO: ${1} + + +## Snippets below (starting with '%') are in EDoc format. +## See http://www.erlang.org/doc/apps/edoc/chapter.html#id56887 for more details + +# doc comment +snippet %d + %% @doc ${1} + +# end of doc comment +snippet %e + %% @end + +# specification comment +snippet %s + %% @spec ${1} + +# private function marker +snippet %p + %% @private + From 94971afaf32e4f302ff1b8fd14a6d08d4d674160 Mon Sep 17 00:00:00 2001 From: Serhiy Oplakanets Date: Mon, 6 Feb 2012 15:45:23 +0200 Subject: [PATCH 2/2] Remove trailing newlines. --- snippets/erlang.snippets | 8 -------- 1 file changed, 8 deletions(-) diff --git a/snippets/erlang.snippets b/snippets/erlang.snippets index 14f2971..e44bf5e 100644 --- a/snippets/erlang.snippets +++ b/snippets/erlang.snippets @@ -37,28 +37,20 @@ snippet case snippet rec -record(${1:record}, { ${2:field}=${3:value}}).${4} - # todo comment snippet todo %% TODO: ${1} - - ## Snippets below (starting with '%') are in EDoc format. ## See http://www.erlang.org/doc/apps/edoc/chapter.html#id56887 for more details - # doc comment snippet %d %% @doc ${1} - # end of doc comment snippet %e %% @end - # specification comment snippet %s %% @spec ${1} - # private function marker snippet %p %% @private -