From f121becfcb57b2162d47caaff2405fa4928c8167 Mon Sep 17 00:00:00 2001 From: tormaroe Date: Wed, 23 May 2012 13:08:13 +0200 Subject: [PATCH] Added erlang try snippet with a catch-all --- snippets/erlang.snippets | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/snippets/erlang.snippets b/snippets/erlang.snippets index 9a85215..c9a43e5 100644 --- a/snippets/erlang.snippets +++ b/snippets/erlang.snippets @@ -36,6 +36,13 @@ snippet case # anonymous function snippet fun fun (${1:Parameters}) -> ${2:body} end${3} +# try...catch +snippet try + try + ${1} + catch + ${2:_:_} -> ${3:got_some_exception} + end # record directive snippet rec -record(${1:record}, {