From 06b6aeba34f180cb9f972ab3247f86af34eb28f8 Mon Sep 17 00:00:00 2001 From: g0rdin <9ordin@gmail.com> Date: Sat, 8 Jan 2011 23:20:07 +0100 Subject: [PATCH] Added useful snippets to erlang snippets --- UltiSnips/erlang.snippets | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/UltiSnips/erlang.snippets b/UltiSnips/erlang.snippets index 4acd923..80776a7 100644 --- a/UltiSnips/erlang.snippets +++ b/UltiSnips/erlang.snippets @@ -2,6 +2,11 @@ # TEXTMATE SNIPPETS # ########################################################################### +snippet pat "Case:Receive:Try Clause" +${1:pattern}${2: when ${3:guard}} ->; + ${4:body} +endsnippet + snippet beh "Behaviour Directive" -behaviour (${1:behaviour}). endsnippet @@ -28,6 +33,11 @@ fun end endsnippet +snippet fu "Function" +${1:function} (${2:param})${3: when ${4:guard}} -> + ${5:body} +endsnippet + snippet if "If Expression" if ${1:guard} ->