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§
- Keyword
Info - 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
Identand are deliberately absent fromKEYWORDS(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 inbynk-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.