File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -143,9 +143,9 @@ takes arguments, the cursor is positioned inside the parenthesis.
143
143
There are postfix completions, which can be triggered by typing something like
144
144
` foo().if ` . The word after ` . ` determines postfix completion. Possible variants are:
145
145
146
- - ` expr.if ` -> ` if expr {} `
146
+ - ` expr.if ` -> ` if expr {} ` or ` if let ... {} ` for ` Option ` or ` Result `
147
147
- ` expr.match ` -> ` match expr {} `
148
- - ` expr.while ` -> ` while expr {} `
148
+ - ` expr.while ` -> ` while expr {} ` or ` while let ... {} ` for ` Option ` or ` Result `
149
149
- ` expr.ref ` -> ` &expr `
150
150
- ` expr.refm ` -> ` &mut expr `
151
151
- ` expr.not ` -> ` !expr `
@@ -161,6 +161,16 @@ There also snippet completions:
161
161
#### Inside Modules
162
162
163
163
- ` tfn ` -> ` #[test] fn f(){} `
164
+ - ` tmod ` ->
165
+ ``` rust
166
+ #[cfg(test)]
167
+ mod tests {
168
+ use super :: * ;
169
+
170
+ #[test]
171
+ fn test_fn () {}
172
+ }
173
+ ```
164
174
165
175
### Code Highlighting
166
176
You can’t perform that action at this time.
0 commit comments