-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsnippets.json
324 lines (324 loc) · 7.03 KB
/
snippets.json
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
{
"if statement": {
"prefix": ["if"],
"body": [
"if ${1:expr} then",
"\t${0}",
"end if"
]
},
"elsif statement": {
"prefix": ["elsif"],
"body": [
"elsif ${1:expr} then",
"\t${0}"
]
},
"else statement": {
"prefix": ["else"],
"body": [
"else",
"\t${0}"
]
},
"switch statement": {
"prefix": ["switch"],
"body": [
"switch ${1:expr} do",
"\t${0}",
"end switch"
]
},
"switch with fallthru statement": {
"prefix": ["switch-with-fallthru"],
"body": [
"switch ${1:expr} with fallthru do",
"\t${0}",
"end switch"
]
},
"case statement": {
"prefix": ["case"],
"body": [
"case ${1:value} then",
"\t${2}",
"\tbreak",
"${0}"
]
},
"case else statement": {
"prefix": ["case-else"],
"body": [
"case else",
"\t${0}"
]
},
"ifdef statement": {
"prefix": ["ifdef"],
"body": [
"ifdef ${1:expr} then",
"\t${0}",
"end ifdef"
]
},
"elsifdef statement": {
"prefix": ["elsifdef"],
"body": [
"elsifdef ${1:expr} then",
"\t${0}"
]
},
"elsedef statement": {
"prefix": ["elsedef"],
"body": [
"elsedef",
"\t${0}"
]
},
"for loop": {
"prefix": ["for"],
"body": [
"for ${1:loopvar} = ${2:startexpr} to ${3:endexpr} do",
"\t${0}",
"end for"
]
},
"for loop with by": {
"prefix": ["for-by"],
"body": [
"for ${1:loopvar} = ${2:startexpr} to ${3:endexpr} by ${4:delta} do",
"\t${0}",
"end for"
]
},
"while loop": {
"prefix": ["while"],
"body": [
"while ${1:expr} do",
"\t${0}",
"end while"
]
},
"while loop with entry": {
"prefix": ["while-with-entry"],
"body": [
"while ${1:expr} with entry do",
"\t${0}",
"entry",
"\t${2}",
"end while"
]
},
"loop until": {
"prefix": ["loop"],
"body": [
"loop do",
"\t${0}",
"\tuntil ${1:expr}",
"end loop"
]
},
"loop until with entry": {
"prefix": ["loop-with-entry"],
"body": [
"loop with entry do",
"\t${0}",
"entry",
"\t${2}",
"\tuntil ${1:expr}",
"end loop"
]
},
"procedure": {
"prefix": ["procedure"],
"body": [
"procedure ${1}(${2})",
"\t${0}",
"end procedure"
]
},
"public procedure": {
"prefix": ["public-procedure"],
"body": [
"public procedure ${1}(${2})",
"\t${0}",
"end procedure"
]
},
"export procedure": {
"prefix": ["export-procedure"],
"body": [
"export procedure ${1}(${2})",
"\t${0}",
"end procedure"
]
},
"global procedure": {
"prefix": ["global-procedure"],
"body": [
"global procedure ${1}(${2})",
"\t${0}",
"end procedure"
]
},
"function": {
"prefix": ["function"],
"body": [
"function ${1}(${2})",
"\t${0}",
"end function"
]
},
"public function": {
"prefix": ["public-function"],
"body": [
"public function ${1}(${2})",
"\t${0}",
"end function"
]
},
"export function": {
"prefix": ["export-function"],
"body": [
"export function ${1}(${2})",
"\t${0}",
"end function"
]
},
"global function": {
"prefix": ["global-function"],
"body": [
"global function ${1}(${2})",
"\t${0}",
"end function"
]
},
"type": {
"prefix": ["type"],
"body": [
"type ${1}(${2})",
"\t${0}",
"end type"
]
},
"public type": {
"prefix": ["public-type"],
"body": [
"public type ${1}(${2})",
"\t${0}",
"end type"
]
},
"export type": {
"prefix": ["export-type"],
"body": [
"export type ${1}(${2})",
"\t${0}",
"end type"
]
},
"global type": {
"prefix": ["global-type"],
"body": [
"global type ${1}(${2})",
"\t${0}",
"end type"
]
},
"constant": {
"prefix": ["constant"],
"body": [
"constant",
"\t${0},",
"$"
]
},
"public constant": {
"prefix": ["public-constant"],
"body": [
"public constant",
"\t${0},",
"$"
]
},
"export constant": {
"prefix": ["export-constant"],
"body": [
"export constant",
"\t${0},",
"$"
]
},
"global constant": {
"prefix": ["global-constant"],
"body": [
"global constant",
"\t${0},",
"$"
]
},
"enum": {
"prefix": ["enum"],
"body": [
"enum",
"\t${0},",
"$"
]
},
"public enum": {
"prefix": ["public-enum"],
"body": [
"public enum",
"\t${0},",
"$"
]
},
"export enum": {
"prefix": ["export-enum"],
"body": [
"export enum",
"\t${0},",
"$"
]
},
"global enum": {
"prefix": ["global-enum"],
"body": [
"global enum",
"\t${0},",
"$"
]
},
"enum type": {
"prefix": ["enum-type"],
"body": [
"enum type ${1}",
"\t${0}",
"end type"
]
},
"public enum type": {
"prefix": ["public-enum-type"],
"body": [
"public enum type ${1}",
"\t${0}",
"end type"
]
},
"export enum type": {
"prefix": ["export-enum-type"],
"body": [
"export enum type ${1}",
"\t${0}",
"end type"
]
},
"global enum type": {
"prefix": ["global-enum-type"],
"body": [
"global enum type ${1}",
"\t${0}",
"end type"
]
}
}