Expand description
Structs§
- Convert
Config - Format-specific conversion knobs.
- Diagnostics
Config - Diagnostics options.
- Diagnostics
Rules Config - Per-rule severity for diagnostics.
- Formatting
Config - Formatting-related configuration groups.
- Formatting
Rules Config - Mirrors the knobs exposed by the Lex formatter.
- Html
Config - Includes
Config - Include-resolution options consumed by
lexd convert,lexd inspect, and the LSP.lexd formatnever expands includes regardless. - Inspect
AstConfig - Inspect
Config - Controls AST-related inspect output.
- Labels
Config [labels]block in.lex.toml— declarations of extension namespaces the workspace owner wants the host to load.- LexConfig
- Top-level configuration consumed by Lex applications.
- Loaded
LexConfig - Typed configuration plus the side-channel map of extension-emitted
diagnostic rules. Returned by [
apply_extension_rules_callback]-aware loaders. - Namespace
Table - Nodemap
Config - PdfConfig
- Schema
Rules Config - Schema-validation diagnostics. Each field maps to one of the
schema pre-validation checks the analyser performs before
dispatching to an extension handler. See the Extending Lex
proposal (
comms/specs/proposals/extending-lex.lex) §13.2.
Enums§
- Labels
Config Error - Errors emitted by
load_labels_from_tomlandNamespaceSpec::canonical_uri. - Namespace
Spec - One namespace declaration. Three on-disk shapes parse into the same logical record:
- PdfPage
Size - Rule
Config - One entry in a
[diagnostics.rules]block. - Severity
- User-facing severity for a diagnostic rule.
- Via
- Transport selector for URL-template namespace declarations
(
github:,gitlab:). The default, when unset, isHttps— the public tarball/archive path — to match the original (pre-via) behaviour.
Constants§
- CONFIG_
FILE_ NAME - Canonical config file name used by the CLI and LSP.
- DIAGNOSTICS_
RULES_ PATH - Dotted-path prefix under which extension-emitted diagnostic codes
live (
<namespace>.<code>style keys, e.g."acme.task-due-date-missing" = "warn"). Used with clapfig’saccept_dotted_extension_keys_inhelper: any unknown key in this subtree whose remainder contains a.is treated as an extension code and routed to the collected- unknowns list; bare typos at this level or typos inside[diagnostics.rules.schema]still fail strict-mode validation.
Functions§
- collect_
extension_ diagnostic_ rules - Drain clapfig’s
CollectedUnknownlist into aBTreeMap<String, RuleConfig>suitable forLoadedLexConfig::extension_diagnostic_rules. - load_
labels_ from_ toml - Load the
[labels]block from a.lex.tomlatpath. Returns an empty config if the file exists but has no[labels]block;Io::NotFoundis propagated to the caller (the CLI usually treats it as “no labels configured” and continues).
Type Aliases§
- Rule
Options - Free-form options table forwarded to a rule’s emission code.