From 49ccfb3791efeb8fbe354b96819c06f71fcb4eeb Mon Sep 17 00:00:00 2001 From: ujihisa Date: Sun, 14 Jul 2013 12:37:00 -0700 Subject: [PATCH] Add erlang snippets. --- autoload/neosnippet/snippets/erlang.snip | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 autoload/neosnippet/snippets/erlang.snip diff --git a/autoload/neosnippet/snippets/erlang.snip b/autoload/neosnippet/snippets/erlang.snip new file mode 100644 index 0000000..fe1203a --- /dev/null +++ b/autoload/neosnippet/snippets/erlang.snip @@ -0,0 +1,21 @@ +snippet helloworld +options head + + + main(_) -> io:format("Hello, world!\n"). + +snippet -module +options head + -module(${0:module}). + +snippet -export +options head + -export([${0:f/1}]). + +snippet ioformat +options word + io:format("${1:~w~n}"${2:, []}) + +snippet main +options head + main(_) -> ${0}.