Skip to main content

basic_semantic_tokens

Function basic_semantic_tokens 

Source
pub fn basic_semantic_tokens<L: Lang + Component>(
    query: Query<'_, '_, (Entity, &CstTokens, &Source), (With<HighlightRequest>, With<L>)>,
    commands: Commands<'_, '_>,
)
Expand description

Generic CST-based semantic token extraction. Register this for each language via: world.schedule_scope(semantic::Label, |_, sched| { sched.add_systems(basic_semantic_tokens::<L>); })