|
3 | 3 | "prefix": "if", |
4 | 4 | "body": [ |
5 | 5 | "if ${expression}:", |
6 | | - "\t${suite}" |
| 6 | + "\t${pass}" |
7 | 7 | ], |
8 | 8 | "description": "Code snippet for an if statement" |
9 | 9 | }, |
10 | 10 | "if/else": { |
11 | 11 | "prefix": "if/else", |
12 | 12 | "body": [ |
13 | 13 | "if ${condition}:", |
14 | | - "\t${1:suite}", |
| 14 | + "\t${1:pass}", |
15 | 15 | "else:", |
16 | | - "\t${2:suite}" |
| 16 | + "\t${2:pass}" |
17 | 17 | ], |
18 | 18 | "description": "Code snippet for an if statement with else" |
19 | 19 | }, |
20 | 20 | "elif": { |
21 | 21 | "prefix": "elif", |
22 | 22 | "body": [ |
23 | 23 | "elif ${expression}:", |
24 | | - "\t${suite}" |
| 24 | + "\t${pass}" |
25 | 25 | ], |
26 | 26 | "description": "Code snippet for an elif" |
27 | 27 | }, |
28 | 28 | "else": { |
29 | 29 | "prefix": "else", |
30 | 30 | "body": [ |
31 | 31 | "else:", |
32 | | - "\t${suite}" |
| 32 | + "\t${pass}" |
33 | 33 | ], |
34 | 34 | "description": "Code snippet for an else" |
35 | 35 | }, |
36 | 36 | "while": { |
37 | 37 | "prefix": "while", |
38 | 38 | "body": [ |
39 | 39 | "while ${expression}:", |
40 | | - "\t${suite}" |
| 40 | + "\t${pass}" |
41 | 41 | ], |
42 | 42 | "description": "Code snippet for a while loop" |
43 | 43 | }, |
44 | 44 | "while/else": { |
45 | 45 | "prefix": "while/else", |
46 | 46 | "body": [ |
47 | 47 | "while ${expression}:", |
48 | | - "\t${1:suite}", |
| 48 | + "\t${1:pass}", |
49 | 49 | "else:", |
50 | | - "\t${2:suite}" |
| 50 | + "\t${2:pass}" |
51 | 51 | ], |
52 | 52 | "description": "Code snippet for a while loop with else" |
53 | 53 | }, |
54 | 54 | "for": { |
55 | 55 | "prefix": "for", |
56 | 56 | "body": [ |
57 | 57 | "for ${target_list} in ${expression_list}:", |
58 | | - "\t${suite}" |
| 58 | + "\t${pass}" |
59 | 59 | ], |
60 | 60 | "description": "Code snippet for a for loop" |
61 | 61 | }, |
62 | 62 | "for/else": { |
63 | 63 | "prefix": "for/else", |
64 | 64 | "body": [ |
65 | 65 | "for ${target_list} in ${expression_list}:", |
66 | | - "\t${1:suite}", |
| 66 | + "\t${1:pass}", |
67 | 67 | "else:", |
68 | | - "\t${2:suite}" |
| 68 | + "\t${2:pass}" |
69 | 69 | ], |
70 | 70 | "description": "Code snippet for a for loop with else" |
71 | 71 | }, |
72 | 72 | "try/except": { |
73 | 73 | "prefix": "try/except", |
74 | 74 | "body": [ |
75 | 75 | "try:", |
76 | | - "\t${1:suite}", |
| 76 | + "\t${1:pass}", |
77 | 77 | "except ${expression} as ${identifier}:", |
78 | | - "\t${2:suite}" |
| 78 | + "\t${2:pass}" |
79 | 79 | ], |
80 | 80 | "description": "Code snippet for a try/except statement" |
81 | 81 | }, |
82 | 82 | "try/finally": { |
83 | 83 | "prefix": "try/finally", |
84 | 84 | "body": [ |
85 | 85 | "try:", |
86 | | - "\t${1:suite}", |
| 86 | + "\t${1:pass}", |
87 | 87 | "finally:", |
88 | | - "\t${2:suite}" |
| 88 | + "\t${2:pass}" |
89 | 89 | ], |
90 | 90 | "description": "Code snippet for a try/finally statement" |
91 | 91 | }, |
92 | 92 | "try/except/else": { |
93 | 93 | "prefix": "try/except/else", |
94 | 94 | "body": [ |
95 | 95 | "try:", |
96 | | - "\t${1:suite}", |
| 96 | + "\t${1:pass}", |
97 | 97 | "except ${expression} as ${identifier}:", |
98 | | - "\t${2:suite}", |
| 98 | + "\t${2:pass}", |
99 | 99 | "else:", |
100 | | - "\t${3:suite}" |
| 100 | + "\t${3:pass}" |
101 | 101 | ], |
102 | 102 | "description": "Code snippet for a try/except/else statement" |
103 | 103 | }, |
104 | 104 | "try/except/finally": { |
105 | 105 | "prefix": "try/except/finally", |
106 | 106 | "body": [ |
107 | 107 | "try:", |
108 | | - "\t${1:suite}", |
| 108 | + "\t${1:pass}", |
109 | 109 | "except ${expression} as ${identifier}:", |
110 | | - "\t${2:suite}", |
| 110 | + "\t${2:pass}", |
111 | 111 | "finally:", |
112 | | - "\t${3:suite}" |
| 112 | + "\t${3:pass}" |
113 | 113 | ], |
114 | 114 | "description": "Code snippet for a try/except/finally statement" |
115 | 115 | }, |
116 | 116 | "try/except/else/finally": { |
117 | 117 | "prefix": "try/except/else/finally", |
118 | 118 | "body": [ |
119 | 119 | "try:", |
120 | | - "\t${1:suite}", |
| 120 | + "\t${1:pass}", |
121 | 121 | "except ${expression} as ${identifier}:", |
122 | | - "\t${2:suite}", |
| 122 | + "\t${2:pass}", |
123 | 123 | "else:", |
124 | | - "\t${3:suite}", |
| 124 | + "\t${3:pass}", |
125 | 125 | "finally:", |
126 | | - "\t${4:suite}" |
| 126 | + "\t${4:pass}" |
127 | 127 | ], |
128 | 128 | "description": "Code snippet for a try/except/else/finally statement" |
129 | 129 | }, |
130 | 130 | "with": { |
131 | 131 | "prefix": "with", |
132 | 132 | "body": [ |
133 | 133 | "with ${expression} as ${target}:", |
134 | | - "\t${suite}" |
| 134 | + "\t${pass}" |
135 | 135 | ], |
136 | 136 | "description": "Code snippet for a with statement" |
137 | 137 | }, |
138 | 138 | "def": { |
139 | 139 | "prefix": "def", |
140 | 140 | "body": [ |
141 | 141 | "def ${funcname}(${parameter_list}):", |
142 | | - "\t${suite}" |
| 142 | + "\t${pass}" |
143 | 143 | ], |
144 | 144 | "description": "Code snippet for a function definition" |
145 | 145 | }, |
146 | 146 | "def(class method)": { |
147 | 147 | "prefix": "def(class method)", |
148 | 148 | "body": [ |
149 | 149 | "def ${funcname}(self, ${parameter_list}):", |
150 | | - "\t${suite}" |
| 150 | + "\t${pass}" |
151 | 151 | ], |
152 | 152 | "description": "Code snippet for a class method" |
153 | 153 | }, |
|
156 | 156 | "body": [ |
157 | 157 | "@staticmethod", |
158 | 158 | "def ${funcname}(${parameter_list}):", |
159 | | - "\t${suite}" |
| 159 | + "\t${pass}" |
160 | 160 | ], |
161 | 161 | "description": "Code snippet for a static class method" |
162 | 162 | }, |
|
172 | 172 | "prefix": "class", |
173 | 173 | "body": [ |
174 | 174 | "class ${classname}(${object}):", |
175 | | - "\t${suite}" |
| 175 | + "\t${pass}" |
176 | 176 | ], |
177 | 177 | "description": "Code snippet for a class definition" |
178 | 178 | }, |
|
187 | 187 | "prefix": "if(main)", |
188 | 188 | "body": [ |
189 | 189 | "def main():", |
190 | | - "\t${suite}", |
| 190 | + "\t${pass}", |
191 | 191 | "", |
192 | 192 | "if __name__ == '__main__':", |
193 | 193 | "\tsys.exit(int(main() or 0))" |
|
198 | 198 | "prefix": "async/def", |
199 | 199 | "body": [ |
200 | 200 | "async def ${funcname}(${parameter_list}):", |
201 | | - "\t${suite}" |
| 201 | + "\t${pass}" |
202 | 202 | ], |
203 | 203 | "description": "Code snippet for a async statement" |
204 | 204 | }, |
|
0 commit comments