Class ReplHighlighter
java.lang.Object
org.ek9lang.cli.ReplHighlighter
- All Implemented Interfaces:
org.jline.reader.Highlighter
Simple syntax highlighter for EK9 REPL.
Provides basic colorization for common EK9 constructs to improve user experience.
Focuses on practical highlighting rather than complete language coverage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jline.utils.AttributedStringvoidsetErrorIndex(int errorIndex) voidsetErrorPattern(Pattern errorPattern) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jline.reader.Highlighter
refresh
-
Constructor Details
-
ReplHighlighter
public ReplHighlighter()
-
-
Method Details
-
highlight
public org.jline.utils.AttributedString highlight(org.jline.reader.LineReader reader, String buffer) - Specified by:
highlightin interfaceorg.jline.reader.Highlighter
-
setErrorPattern
- Specified by:
setErrorPatternin interfaceorg.jline.reader.Highlighter
-
setErrorIndex
public void setErrorIndex(int errorIndex) - Specified by:
setErrorIndexin interfaceorg.jline.reader.Highlighter
-