-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsnippets.json
143 lines (141 loc) · 2.95 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
{
"dcl-s - Declare standalone variable": {
"prefix": "dcl-s",
"body": [
"dcl-s ${1:name}\t${2:type};"
],
"description": "Declare standalone variable"
},
"dow - Do while": {
"prefix": "dow",
"body": [
"dow $1;",
"\t$2",
"enddo;"
],
"description": "if statement"
},
"if - If / end": {
"prefix": "if",
"body": [
"if $1;",
"\t$2",
"endif;"
],
"description": "if statement"
},
"if - If / else / end": {
"prefix": "if",
"body": [
"if $1;",
"\t$2",
"else;",
"\t",
"endif;"
],
"description": "if statement"
},
"if - if / elseif / else / endif": {
"prefix": "if",
"body": [
"if $1;",
"\t$2",
"elseif;",
"\t",
"else;",
"\t",
"endif;"
],
"description": "if statement"
},
"select - select / when / other / endsl": {
"prefix": "select",
"body": [
"select;",
"\twhen $1;",
"\tother;",
"endsl;"
],
"description": "select statement"
},
"when - select statement": {
"prefix": "when",
"body": [
"when $1;"
],
"description": "when in select statement"
},
"other - select statement ": {
"prefix": "when",
"body": [
"when $1;"
],
"description": "when in select statement"
},
"dcl-proc - Declare procedure": {
"prefix": "proc",
"body": [
"// ------------------------------------------------------------------------------------",
"// ${1:name}",
"// ------------------------------------------------------------------------------------",
"dcl-proc $1;",
"",
"\tdcl-pi $1 ;",
"\tend-pi;",
"",
"\t$2",
"",
"\treturn;",
"end-proc;"
],
"description": "Declare procedure declaration"
},
"exsr - Execute subrutine": {
"prefix": "exsr",
"body": [
"exsr ${1:subrutine};"
],
"description": "Execute subrutine"
},
"exsr - Execute and declare subrutine": {
"prefix": "exsrbegsr",
"body": [
"exsr ${1:subrutine};",
"// -------------------------------------------------------------------------------",
"// ${1:subrutine}",
"// -------------------------------------------------------------------------------",
"begsr ${1:subrutine};",
"\t$2",
"endsr;"
],
"description": "Declare and execute subrutine"
},
"read loop": {
"prefix": "read loop",
"body": [
"setll *loval ${1:filename};",
"read ${1:filename};",
"dow not %EOF(${1:filename});",
"\t$2",
"\tread ${1:filename};",
"enddo;"
],
"description": "Declare and execute subrutine"
},
"main - main body and main procedure": {
"prefix": "main",
"body": [
"ctl-opt copyright('Company');",
"ctl-opt decEdit('0,') datEdit(*YMD.);",
"ctl-opt BndDir('QC2LE');",
"ctl-opt main(main); ",
"// ------------------------------------------------------------------------------------",
"// Main entry procedure",
"// ------------------------------------------------------------------------------------",
"dcl-proc main;",
"\t${1:yourcode}",
"end-proc;"
],
"description": "Main body and main procedure"
}
}