Added erlang try snippet with a catch-all
This commit is contained in:
parent
54ed56d76f
commit
f121becfcb
@ -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}, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user