Add HighlightModifier::Callable and add it for locals

This commit is contained in:
GrayJack 2020-10-16 06:38:32 -03:00
parent 0d45802d67
commit 83d6bc7113
No known key found for this signature in database
GPG key ID: 12C54E04AAB9931E
4 changed files with 8 additions and 0 deletions

View file

@ -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;
}
}