more ocaml snippets

This commit is contained in:
Andrea Crotti 2012-02-24 15:55:39 +00:00
parent 3b0e48f7df
commit 819b3671a5
7 changed files with 38 additions and 1 deletions

5
tuareg-mode/fun Normal file
View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: fun
# key: fun
# --
fun ${1:args} -> $0

6
tuareg-mode/ifthen Normal file
View file

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: ifthen
# key: if
# --
if ${1:cond} then
$0

8
tuareg-mode/ifthenelse Normal file
View file

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: ifthenelse
# key: if
# --
if ${1:cond} then
$2
else
$0

6
tuareg-mode/match Normal file
View file

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: match
# key: match
# --
match ${1:to_match} with
| ${2:matching} -> $0

5
tuareg-mode/open Normal file
View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: open
# key: op
# --
open ${1:Module}

View file

@ -1,5 +1,5 @@
# -*- mode: snippet -*-
# name: printf
# key: printf
# key: pr
# --
Printf.printf ${1:"string"} ${2:vals};;

7
tuareg-mode/while Normal file
View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: while
# key: wh
# --
while ${1:cond} do
$0
done