Skip to main content

Module keywords

Module keywords 

Source
Expand description

Registry of reserved keywords.

Single source of truth for the keyword list in site/src/content/docs/book/reference/keywords.md, generated by render_markdown. The test tests/keywords_reference.rs asserts this table matches exactly the alphabetic #[token("…")] keywords declared in lexer.rs, so the two cannot drift.

Structs§

KeywordInfo
One reserved keyword and a one-line description of its role.

Constants§

CONTEXTUAL_KEYWORDS
Contextual keywords — words that read as keywords in one position but stay usable as ordinary identifiers elsewhere, so they are lexed as Ident and are deliberately absent from KEYWORDS (which is drift-guarded to equal the lexer’s reserved #[token]s). Editor surfaces still owe them a hover and a doc — the mechanical floor over this table lives in bynk-lsp/tests/editor_coverage.rs, mirroring the reserved-keyword tooth (ADR 0156 / ADR 0161).
KEYWORDS
Every reserved keyword, sorted.

Functions§

render_markdown
Render the keyword list as a Markdown reference page.