mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add HighlightModifier::Callable and add it for locals
This commit is contained in:
parent
0d45802d67
commit
83d6bc7113
4 changed files with 8 additions and 0 deletions
|
@ -763,6 +763,9 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight {
|
|||
if local.is_mut(db) || local.ty(db).is_mutable_reference() {
|
||||
h |= HighlightModifier::Mutable;
|
||||
}
|
||||
if local.ty(db).as_callable(db).is_some() {
|
||||
h |= HighlightModifier::Callable;
|
||||
}
|
||||
return h;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue