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> {
8585 COMMENT => Some ( FoldKind :: Comment ) ,
8686 USE => Some ( FoldKind :: Imports ) ,
8787 ARG_LIST | PARAM_LIST => Some ( FoldKind :: ArgList ) ,
88- RECORD_FIELD_LIST
88+ ASSOC_ITEM_LIST
89+ | RECORD_FIELD_LIST
8990 | RECORD_PAT_FIELD_LIST
9091 | RECORD_EXPR_FIELD_LIST
9192 | ITEM_LIST
@@ -336,6 +337,26 @@ fn main() <fold block>{
336337 ) ;
337338 }
338339
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+
339360 #[ test]
340361 fn test_folds_macros ( ) {
341362 check (
You can’t perform that action at this time.
0 commit comments