Skip to main content

Module syntax_theme

Module syntax_theme 

Source
Expand description

The built-in default syntax theme (IRIDIUM-A2 C5, amended 2026-07-21): a highlighter must visibly highlight out of the box, so frame-host ships a default capture-name → #rrggbb palette rather than leaving the wire’s optional syntaxTheme member perpetually absent.

The house no-assumed-defaults law forbids inventing numbers, so this palette is not new: it is copied verbatim from the proven SYNTAX_THEME constant in examples/code-view-console/src/fake-feed.ts, the console’s own scripted demo theme. crate::doc_binding::DocBinding::boot uses this default whenever [document].syntax_theme is absent from frame.toml; a declared table REPLACES it wholesale (see crate::config::DocumentSection::syntax_theme).

Functions§

default_syntax_theme
Builds the built-in default syntax theme: capture-name → #rrggbb.