LavaText
142 declarations · 65 documented
LavaText
-
CaretAffinityenumWhich side of a wrap boundary a caret belongs to.
-
HighlightRulestructA pattern-to-style mapping, applied per line.
-
HighlightSpanstructA styled character range within one line.
-
LineIndexstructWhere each logical line sits, in characters and (optionally) in bytes.
-
MarkdownDocumentstructDisplay text with Markdown delimiters removed and styles mapped to character offsets in that display text.
-
MarkdownParserenumA deliberately compact Markdown parser for model responses.
-
MarkdownSpanstruct -
MarkdownSpanStyleenumSemantic styles emitted by the small Markdown parser.
-
SoftWrapenumGreedy line breaking.
-
StatefulLexerprotocolA lexer whose highlighting for line N depends on what came before it — the gap a per-line
HighlightRulelist cannot close: a block comment or a string that opens on one line and closes on another. -
SyntaxHighlighterstructApplies rules to a line and resolves overlaps by priority — or, if built from a
StatefulLexerinstead, threads that lexer's state line to line. -
TextEditstructOne reversible edit: replace a range of the buffer with new text.
-
TextEditingStatestructSelection and caret for a single editable string.
-
TextSearchstructFind-in-buffer: match locations plus which one is current.
-
UndoStackstructUndo/redo history for a single buffer.
-
VisualLayoutstructWhere each visual row begins and ends, in character offsets over the whole buffer.