Skip to content

Commit 1d526c2

Browse files
committed
updated snippets to replace suite with pass #235
1 parent 9d292b5 commit 1d526c2

1 file changed

Lines changed: 32 additions & 32 deletions

File tree

snippets/python.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,151 +3,151 @@
33
"prefix": "if",
44
"body": [
55
"if ${expression}:",
6-
"\t${suite}"
6+
"\t${pass}"
77
],
88
"description": "Code snippet for an if statement"
99
},
1010
"if/else": {
1111
"prefix": "if/else",
1212
"body": [
1313
"if ${condition}:",
14-
"\t${1:suite}",
14+
"\t${1:pass}",
1515
"else:",
16-
"\t${2:suite}"
16+
"\t${2:pass}"
1717
],
1818
"description": "Code snippet for an if statement with else"
1919
},
2020
"elif": {
2121
"prefix": "elif",
2222
"body": [
2323
"elif ${expression}:",
24-
"\t${suite}"
24+
"\t${pass}"
2525
],
2626
"description": "Code snippet for an elif"
2727
},
2828
"else": {
2929
"prefix": "else",
3030
"body": [
3131
"else:",
32-
"\t${suite}"
32+
"\t${pass}"
3333
],
3434
"description": "Code snippet for an else"
3535
},
3636
"while": {
3737
"prefix": "while",
3838
"body": [
3939
"while ${expression}:",
40-
"\t${suite}"
40+
"\t${pass}"
4141
],
4242
"description": "Code snippet for a while loop"
4343
},
4444
"while/else": {
4545
"prefix": "while/else",
4646
"body": [
4747
"while ${expression}:",
48-
"\t${1:suite}",
48+
"\t${1:pass}",
4949
"else:",
50-
"\t${2:suite}"
50+
"\t${2:pass}"
5151
],
5252
"description": "Code snippet for a while loop with else"
5353
},
5454
"for": {
5555
"prefix": "for",
5656
"body": [
5757
"for ${target_list} in ${expression_list}:",
58-
"\t${suite}"
58+
"\t${pass}"
5959
],
6060
"description": "Code snippet for a for loop"
6161
},
6262
"for/else": {
6363
"prefix": "for/else",
6464
"body": [
6565
"for ${target_list} in ${expression_list}:",
66-
"\t${1:suite}",
66+
"\t${1:pass}",
6767
"else:",
68-
"\t${2:suite}"
68+
"\t${2:pass}"
6969
],
7070
"description": "Code snippet for a for loop with else"
7171
},
7272
"try/except": {
7373
"prefix": "try/except",
7474
"body": [
7575
"try:",
76-
"\t${1:suite}",
76+
"\t${1:pass}",
7777
"except ${expression} as ${identifier}:",
78-
"\t${2:suite}"
78+
"\t${2:pass}"
7979
],
8080
"description": "Code snippet for a try/except statement"
8181
},
8282
"try/finally": {
8383
"prefix": "try/finally",
8484
"body": [
8585
"try:",
86-
"\t${1:suite}",
86+
"\t${1:pass}",
8787
"finally:",
88-
"\t${2:suite}"
88+
"\t${2:pass}"
8989
],
9090
"description": "Code snippet for a try/finally statement"
9191
},
9292
"try/except/else": {
9393
"prefix": "try/except/else",
9494
"body": [
9595
"try:",
96-
"\t${1:suite}",
96+
"\t${1:pass}",
9797
"except ${expression} as ${identifier}:",
98-
"\t${2:suite}",
98+
"\t${2:pass}",
9999
"else:",
100-
"\t${3:suite}"
100+
"\t${3:pass}"
101101
],
102102
"description": "Code snippet for a try/except/else statement"
103103
},
104104
"try/except/finally": {
105105
"prefix": "try/except/finally",
106106
"body": [
107107
"try:",
108-
"\t${1:suite}",
108+
"\t${1:pass}",
109109
"except ${expression} as ${identifier}:",
110-
"\t${2:suite}",
110+
"\t${2:pass}",
111111
"finally:",
112-
"\t${3:suite}"
112+
"\t${3:pass}"
113113
],
114114
"description": "Code snippet for a try/except/finally statement"
115115
},
116116
"try/except/else/finally": {
117117
"prefix": "try/except/else/finally",
118118
"body": [
119119
"try:",
120-
"\t${1:suite}",
120+
"\t${1:pass}",
121121
"except ${expression} as ${identifier}:",
122-
"\t${2:suite}",
122+
"\t${2:pass}",
123123
"else:",
124-
"\t${3:suite}",
124+
"\t${3:pass}",
125125
"finally:",
126-
"\t${4:suite}"
126+
"\t${4:pass}"
127127
],
128128
"description": "Code snippet for a try/except/else/finally statement"
129129
},
130130
"with": {
131131
"prefix": "with",
132132
"body": [
133133
"with ${expression} as ${target}:",
134-
"\t${suite}"
134+
"\t${pass}"
135135
],
136136
"description": "Code snippet for a with statement"
137137
},
138138
"def": {
139139
"prefix": "def",
140140
"body": [
141141
"def ${funcname}(${parameter_list}):",
142-
"\t${suite}"
142+
"\t${pass}"
143143
],
144144
"description": "Code snippet for a function definition"
145145
},
146146
"def(class method)": {
147147
"prefix": "def(class method)",
148148
"body": [
149149
"def ${funcname}(self, ${parameter_list}):",
150-
"\t${suite}"
150+
"\t${pass}"
151151
],
152152
"description": "Code snippet for a class method"
153153
},
@@ -156,7 +156,7 @@
156156
"body": [
157157
"@staticmethod",
158158
"def ${funcname}(${parameter_list}):",
159-
"\t${suite}"
159+
"\t${pass}"
160160
],
161161
"description": "Code snippet for a static class method"
162162
},
@@ -172,7 +172,7 @@
172172
"prefix": "class",
173173
"body": [
174174
"class ${classname}(${object}):",
175-
"\t${suite}"
175+
"\t${pass}"
176176
],
177177
"description": "Code snippet for a class definition"
178178
},
@@ -187,7 +187,7 @@
187187
"prefix": "if(main)",
188188
"body": [
189189
"def main():",
190-
"\t${suite}",
190+
"\t${pass}",
191191
"",
192192
"if __name__ == '__main__':",
193193
"\tsys.exit(int(main() or 0))"
@@ -198,7 +198,7 @@
198198
"prefix": "async/def",
199199
"body": [
200200
"async def ${funcname}(${parameter_list}):",
201-
"\t${suite}"
201+
"\t${pass}"
202202
],
203203
"description": "Code snippet for a async statement"
204204
},

0 commit comments

Comments
 (0)