From ac477f8522c06034ccce04bc46130dfc58f2fbe7 Mon Sep 17 00:00:00 2001 From: Ches Martin Date: Sun, 1 Mar 2015 07:29:03 -0500 Subject: [PATCH] rust: case clause snippet for pattern matches --- snippets/rust.snippets | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snippets/rust.snippets b/snippets/rust.snippets index 8882c08..396dfba 100644 --- a/snippets/rust.snippets +++ b/snippets/rust.snippets @@ -102,8 +102,10 @@ snippet eli "else if" } snippet mat "match pattern" match ${1} { - ${2} => ${3}, + ${2} => ${3} } +snippet case "Case clause of pattern match" + ${1:_} => ${2:expression} snippet loop "loop {}" b loop { ${0}