summaryrefslogtreecommitdiff
path: root/.emacs.d/mysnippets/text-mode/scala-mode/match.can
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/mysnippets/text-mode/scala-mode/match.can')
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/match.can11
1 files changed, 11 insertions, 0 deletions
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/match.can b/.emacs.d/mysnippets/text-mode/scala-mode/match.can
new file mode 100644
index 0000000..77d475b
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/match.can
@@ -0,0 +1,11 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : can match { case Full(res) => .. }
3# --
4${1:option} match {
5 case Full(res) => $0
6
7 case Empty =>
8
9 case Failure(msg, _, _) =>
10
11} \ No newline at end of file