File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ fn fold_kind(kind: SyntaxKind) -> Option<FoldKind> {
85
85
COMMENT => Some ( FoldKind :: Comment ) ,
86
86
USE => Some ( FoldKind :: Imports ) ,
87
87
ARG_LIST | PARAM_LIST => Some ( FoldKind :: ArgList ) ,
88
- RECORD_FIELD_LIST
88
+ ASSOC_ITEM_LIST
89
+ | RECORD_FIELD_LIST
89
90
| RECORD_PAT_FIELD_LIST
90
91
| RECORD_EXPR_FIELD_LIST
91
92
| ITEM_LIST
@@ -336,6 +337,26 @@ fn main() <fold block>{
336
337
) ;
337
338
}
338
339
340
+ #[ test]
341
+ fn test_folds_structs ( ) {
342
+ check (
343
+ r#"
344
+ struct Foo <fold block>{
345
+ }</fold>
346
+ "# ,
347
+ ) ;
348
+ }
349
+
350
+ #[ test]
351
+ fn test_folds_traits ( ) {
352
+ check (
353
+ r#"
354
+ trait Foo <fold block>{
355
+ }</fold>
356
+ "# ,
357
+ ) ;
358
+ }
359
+
339
360
#[ test]
340
361
fn test_folds_macros ( ) {
341
362
check (
You can’t perform that action at this time.
0 commit comments