Add HighlightModifier::Callable and add it for locals
This commit is contained in:
@@ -77,6 +77,7 @@ define_semantic_token_modifiers![
|
||||
(CONSUMING, "consuming"),
|
||||
(UNSAFE, "unsafe"),
|
||||
(ATTRIBUTE_MODIFIER, "attribute"),
|
||||
(CALLABLE, "callable"),
|
||||
];
|
||||
|
||||
#[derive(Default)]
|
||||
|
||||
@@ -408,6 +408,7 @@ fn semantic_token_type_and_modifiers(
|
||||
HighlightModifier::Mutable => semantic_tokens::MUTABLE,
|
||||
HighlightModifier::Consuming => semantic_tokens::CONSUMING,
|
||||
HighlightModifier::Unsafe => semantic_tokens::UNSAFE,
|
||||
HighlightModifier::Callable => semantic_tokens::CALLABLE,
|
||||
};
|
||||
mods |= modifier;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user