Skip to main content

Module syntax

Module syntax 

Source
Expand description

Conversion of renderer-neutral syntax spans to Ratatui text.

Structs§

CacheConfig
CacheKey
CacheUsage
DocumentHighlights
Fingerprint
FontStyle
Text modifiers returned by the syntax engine.
HighlightSpan
A highlighted, UTF-8-safe byte range into the supplied source.
HighlightStats
Rgba
An sRGB color with an explicit alpha channel.
SyntaxHighlighter
SyntaxStream
SyntaxStreamUpdate
SyntaxStyle
Style assigned to a Tree-sitter capture name.
SyntaxTheme
SyntaxWorkStats
ThemedHighlighter

Enums§

LanguageHint
A structured language hint accepted by the highlighter.
SyntaxError

Functions§

empty_spans
highlighted_line
Converts ordered UTF-8 byte spans into a fully-owned Ratatui line.
resolve_language
Resolves a language ID, alias, or repository path.