Skip to main content

Module semantic_tokens

Module semantic_tokens 

Source
Expand description

Semantic tokens for names, which the TextMate grammar can’t tell apart: a struct from a view, a state value from a local, a built-in element from a declared function. Keywords, literals, operators and comments are left to the grammar.

Enums§

Modifier 🔒
TokenType 🔒

Functions§

built_in 🔒
The modifier for a name the file doesn’t declare: from the built-in tables, or none for a misspelling.
classify 🔒
classify_symbol 🔒
A symbol’s token type, marked readonly when the name can’t be assigned.
legend 🔒
semantic_tokens 🔒
Every name in file, encoded relative to the one before it as the protocol asks.