Package com.helix.cli.repl
Class HelixReplHighlighter
java.lang.Object
com.helix.cli.repl.HelixReplHighlighter
- All Implemented Interfaces:
org.jline.reader.Highlighter
Real-time syntax highlighter for the Helix REPL.
Applies color styling to commands, operators, string literals, numbers, and identifiers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jline.utils.AttributedStringvoidsetErrorIndex(int errorIndex) voidsetErrorPattern(Pattern errorPattern) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jline.reader.Highlighter
refresh
-
Constructor Details
-
HelixReplHighlighter
public HelixReplHighlighter()
-
-
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
-