Skip to content

Commit e3163bc

Browse files
committed
Update objectscript.json
added 4 looping snippets
1 parent 7fae157 commit e3163bc

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

snippets/objectscript.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,26 @@
1919
"\twrite rs.ID, !",
2020
"}"],
2121
"description": "Prepare and execute SQL Query"
22-
}
22+
},
23+
"For": {
24+
"prefix": ["For"],
25+
"body": ["for $1 = $2:$3:$4 {", "\t$0", "}"]
26+
},
27+
28+
"For Each": {
29+
"prefix": ["For"],
30+
"body": ["for $1 = \"$2\",\"$3\",\"$4\" {", "\t$0", "}"]
31+
},
32+
33+
"Do While": {
34+
"prefix": ["Do"],
35+
"body": ["do {", "\t$0", "} while ($1)"]
36+
},
37+
38+
"While": {
39+
"prefix": ["While"],
40+
"body": ["while ($1) {", "\t$0", "}"]
41+
}
42+
2343

2444
}

0 commit comments

Comments
 (0)