@@ -37,7 +37,7 @@ pub struct HighlightRelatedConfig {
37
37
pub break_points : bool ,
38
38
pub closure_captures : bool ,
39
39
pub yield_points : bool ,
40
- pub branches : bool ,
40
+ pub branch_exit_points : bool ,
41
41
}
42
42
43
43
type HighlightMap = FxHashMap < EditionedFileId , FxHashSet < HighlightedRange > > ;
@@ -81,8 +81,8 @@ pub(crate) fn highlight_related(
81
81
T ! [ fn ] | T ! [ return ] | T ! [ ->] if config. exit_points => {
82
82
highlight_exit_points ( sema, token) . remove ( & file_id)
83
83
}
84
- T ! [ match ] | T ! [ =>] | T ! [ if ] if config. branches => {
85
- highlight_branches ( sema, token) . remove ( & file_id)
84
+ T ! [ match ] | T ! [ =>] | T ! [ if ] if config. branch_exit_points => {
85
+ highlight_branch_exit_points ( sema, token) . remove ( & file_id)
86
86
}
87
87
T ! [ await ] | T ! [ async ] if config. yield_points => {
88
88
highlight_yield_points ( sema, token) . remove ( & file_id)
@@ -306,7 +306,7 @@ fn highlight_references(
306
306
if res. is_empty ( ) { None } else { Some ( res. into_iter ( ) . collect ( ) ) }
307
307
}
308
308
309
- pub ( crate ) fn highlight_branches (
309
+ pub ( crate ) fn highlight_branch_exit_points (
310
310
sema : & Semantics < ' _ , RootDatabase > ,
311
311
token : SyntaxToken ,
312
312
) -> FxHashMap < EditionedFileId , Vec < HighlightedRange > > {
@@ -871,7 +871,7 @@ mod tests {
871
871
references : true ,
872
872
closure_captures : true ,
873
873
yield_points : true ,
874
- branches : true ,
874
+ branch_exit_points : true ,
875
875
} ;
876
876
877
877
#[ track_caller]
@@ -2298,7 +2298,7 @@ fn main() {
2298
2298
2299
2299
#[ test]
2300
2300
fn no_branches_when_disabled ( ) {
2301
- let config = HighlightRelatedConfig { branches : false , ..ENABLED_CONFIG } ;
2301
+ let config = HighlightRelatedConfig { branch_exit_points : false , ..ENABLED_CONFIG } ;
2302
2302
check_with_config (
2303
2303
r#"
2304
2304
fn main() {
0 commit comments