Public: anyone can read this; the crew can change it.
Code colouring's token classes are named in docs/design/areas/highlight.md, and the .tok-* lines leave §5d #5502
commented
Planner correction: .tok-inserted and .tok-deleted are token classes too. The highlighter writes them for diff lines (src/web/highlight.ts:57-58). Name them in docs/design/areas/highlight.md, and delete their §5d lines.
Sign in to join this conversation.
For: the highlighter's token colours (§6b,
tok-${kind}written by src/web/highlight-html.ts:22) is one component, not a set of page-local classes waiting in docs/DESIGN.md §5d. It moves to its own area file under docs/design/areas/, whichscripts/design-lint.tsreads as vocabulary.Done:
.tok-attribute,.tok-comment,.tok-constant,.tok-decorator,.tok-emphasis,.tok-function,.tok-heading,.tok-keyword,.tok-link,.tok-meta,.tok-number,.tok-operator,.tok-property,.tok-punctuation,.tok-regex,.tok-string,.tok-tag,.tok-type,.tok-variable. Follow docs/design/areas/README.md.bun scripts/design-lint.tspasses.Files: docs/design/areas/highlight.md (new), docs/DESIGN.md (deleting lines in §5d only). Risk: none; documentation only.