more ocaml snippets
This commit is contained in:
parent
3b0e48f7df
commit
819b3671a5
7 changed files with 38 additions and 1 deletions
5
tuareg-mode/fun
Normal file
5
tuareg-mode/fun
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: fun
|
||||
# key: fun
|
||||
# --
|
||||
fun ${1:args} -> $0
|
6
tuareg-mode/ifthen
Normal file
6
tuareg-mode/ifthen
Normal file
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: ifthen
|
||||
# key: if
|
||||
# --
|
||||
if ${1:cond} then
|
||||
$0
|
8
tuareg-mode/ifthenelse
Normal file
8
tuareg-mode/ifthenelse
Normal file
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: ifthenelse
|
||||
# key: if
|
||||
# --
|
||||
if ${1:cond} then
|
||||
$2
|
||||
else
|
||||
$0
|
6
tuareg-mode/match
Normal file
6
tuareg-mode/match
Normal 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
5
tuareg-mode/open
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: open
|
||||
# key: op
|
||||
# --
|
||||
open ${1:Module}
|
|
@ -1,5 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: printf
|
||||
# key: printf
|
||||
# key: pr
|
||||
# --
|
||||
Printf.printf ${1:"string"} ${2:vals};;
|
7
tuareg-mode/while
Normal file
7
tuareg-mode/while
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: while
|
||||
# key: wh
|
||||
# --
|
||||
while ${1:cond} do
|
||||
$0
|
||||
done
|
Loading…
Reference in a new issue