LeonardoHighlighter
it.grypho.scala.leonardo.cli.LeonardoHighlighter
class LeonardoHighlighter(schemeName: () => String) extends Highlighter
JLine Highlighter that token-colours the Leonardo prompt as the user types.
A single left-to-right scan classifies each character run as one of: := / :load / :save (operators / pseudo-commands), numeric literals, word tokens (command keyword, function, constant, or variable), and single-character operators and brackets. The active scheme is fetched via schemeName on every keystroke, so colors dark / colors light / colors none takes effect immediately.
reader is never used; call highlightBuffer directly in tests and tooling.
Attributes
- Graph
-
- Supertypes
-
trait Highlighterclass Objecttrait Matchableclass Any
Members list
In this article