aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/folding_ranges.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-08-23 15:01:06 +0100
committerGitHub <[email protected]>2019-08-23 15:01:06 +0100
commita832a2f7dd22c93bc69a7be5d24799bb042b8129 (patch)
tree15f55b3eab48c3d0bbb1975fbd4db7cbb56d3e3e /crates/ra_ide_api/src/folding_ranges.rs
parentc12dce0073c1766f7d2b10a69f8526a8093e70dc (diff)
parent5b18a4eef9e69260ce2f105b33553c929cb7d827 (diff)
Merge #1731
1731: rename pos_field -> tuple_field r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/folding_ranges.rs')
-rw-r--r--crates/ra_ide_api/src/folding_ranges.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/folding_ranges.rs b/crates/ra_ide_api/src/folding_ranges.rs
index e60ae8cf6..3ab6c195e 100644
--- a/crates/ra_ide_api/src/folding_ranges.rs
+++ b/crates/ra_ide_api/src/folding_ranges.rs
@@ -81,8 +81,14 @@ fn fold_kind(kind: SyntaxKind) -> Option<FoldKind> {
81 match kind { 81 match kind {
82 COMMENT => Some(FoldKind::Comment), 82 COMMENT => Some(FoldKind::Comment),
83 USE_ITEM => Some(FoldKind::Imports), 83 USE_ITEM => Some(FoldKind::Imports),
84 NAMED_FIELD_DEF_LIST | FIELD_PAT_LIST | ITEM_LIST | EXTERN_ITEM_LIST | USE_TREE_LIST 84 RECORD_FIELD_DEF_LIST
85 | BLOCK | ENUM_VARIANT_LIST | TOKEN_TREE => Some(FoldKind::Block), 85 | RECORD_FIELD_PAT_LIST
86 | ITEM_LIST
87 | EXTERN_ITEM_LIST
88 | USE_TREE_LIST
89 | BLOCK
90 | ENUM_VARIANT_LIST
91 | TOKEN_TREE => Some(FoldKind::Block),
86 _ => None, 92 _ => None,
87 } 93 }
88} 94}