rust: case clause snippet for pattern matches

This commit is contained in:
Ches Martin 2015-03-01 07:29:03 -05:00
parent 982f347238
commit ac477f8522

View File

@ -102,8 +102,10 @@ snippet eli "else if"
} }
snippet mat "match pattern" snippet mat "match pattern"
match ${1} { match ${1} {
${2} => ${3}, ${2} => ${3}
} }
snippet case "Case clause of pattern match"
${1:_} => ${2:expression}
snippet loop "loop {}" b snippet loop "loop {}" b
loop { loop {
${0} ${0}