This repository has been archived by the owner on Apr 23, 2020. It is now read-only.
forked from nbros/OcaIDE
-
Notifications
You must be signed in to change notification settings - Fork 1
/
templates.xml
152 lines (136 loc) · 3.78 KB
/
templates.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<template
autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false"
description="begin end block"
enabled="true"
id="ocaml.editors.templates.beginEnd"
name="begin end">begin
${cursor}
end
</template>
<template
autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false" description="class definition"
enabled="true"
id="ocaml.editors.templates.class"
name="class">class ${name} =
object (self)
${cursor}
end
</template>
<template
autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false" description="exception definition"
enabled="true"
id="ocaml.editors.templates.exception"
name="exception">exception ${Exc};;</template>
<template autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false"
description="loop"
enabled="true"
id="ocaml.editors.templates.for"
name="for">for ${i} = ${0} to ${10} do
${cursor}
done
</template>
<template
autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false"
description="condition"
enabled="true"
id="ocaml.editors.templates.if"
name="if">if ${condition} then
${consequence}
else
${alternative}
</template>
<template
autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false"
description="let+match"
enabled="true"
id="ocaml.editors.templates.letAndMatch"
name="let+match">let rec ${functionName} ${parameter} = match ${parameter} with
${cursor}</template>
<template
autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false"
description="match with"
enabled="true"
id="ocaml.editors.templates.match"
name="match">match ${name} with
| ${cursor}</template>
<template autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false"
description="method definition"
enabled="true"
id="ocaml.editors.templates.method"
name="method">method ${name} = ${cursor}</template>
<template
autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false"
description="module"
enabled="true"
id="ocaml.editors.templates.module"
name="module">module ${Name} =
struct
${cursor}
end
</template>
<template
autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false"
description="module type definition"
enabled="true"
id="ocaml.editors.templates.moduleType"
name="module type">module type ${Name} =
sig
${cursor}
end
</template>
<template
autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false"
description="record type definition"
enabled="true"
id="ocaml.editors.templates.recordType"
name="record">type ${name} = {${field1}: ${type1}; ${field2}: ${type2}}</template>
<template autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false"
description="try with"
enabled="true"
id="ocaml.editors.templates.tryWith"
name="try">try ${expr} with ${Exception} -> ${cursor}</template>
<template
autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false"
description="variant type definition"
enabled="true"
id="ocaml.editors.templates.variantDef"
name="variant">type ${name} = ${Cons1} of ${type1} | ${Cons2} of ${type2}</template>
<template autoinsert="true"
context="ocaml.editors.templates.contextType.ocamlFile"
deleted="false"
description="while"
enabled="true"
id="ocaml.editors.templates.while"
name="while">while ${condition} do
${cursor}
done
</template>
</templates>