-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsnippets.json
54 lines (54 loc) · 1.09 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
{
"function body": {
"prefix": "func",
"body": [
"function",
"\t$0",
"end function"
],
"description": "Defines function body"
},
"function body with arguments": {
"prefix": "func",
"body": [
"function($1)",
"\t$0",
"end function"
],
"description": "Defines function body with arguments"
},
"for": {
"prefix": "for",
"body": [
"for ${1:variable} in ${2:expr}",
"\t$0",
"end for"
],
"description": "Defines a for loop"
},
"while": {
"prefix": "while",
"body": [
"while ${1:condition}",
"\t$0",
"end while"
],
"description": "Defines a while loop"
},
"if block": {
"prefix": "if",
"body": [
"if ${1:condition} then",
"\t$0",
"end if"
],
"description": "Defines an if block"
},
"if line": {
"prefix": "ift",
"body": [
"if ${1:condition} then ${2:action}"
],
"description": "Defines a single-line if/then"
}
}