Skip to main content

semantic_token

Function semantic_token 

Source
pub fn semantic_token(
    kind: HighlightKind,
) -> Option<(SemanticTokenType, SemanticTokenModifiers)>
Expand description

The LSP token type + modifiers for a highlight kind, or None for kinds that carry no semantic token: whitespace (insignificant), punctuation (delimiters editors theme structurally), and lex errors (surfaced as diagnostics, not tokens).