Skip to main content

Module errors

Module errors 

Source
Expand description

Error types for farben markup tokenization and registry operations.

LexError covers failures during tokenization of markup strings like [bold red]text[/]. RegistryError covers failures in registry operations such as set_prefix and insert_style. LexErrorDisplay wraps a LexError with the original input to produce compiler-style diagnostic output with a caret pointing at the offending byte offset.

Structs§

LexErrorDisplay
Diagnostic formatter that renders a LexError alongside the original markup input.

Enums§

LexError
Errors produced during tokenization of a farben markup string.
RegistryError
Errors produced by registry operations (set_prefix, insert_style).