Class HelixReplHighlighter

java.lang.Object
com.helix.cli.repl.HelixReplHighlighter
All Implemented Interfaces:
org.jline.reader.Highlighter

public class HelixReplHighlighter extends Object implements org.jline.reader.Highlighter
Real-time syntax highlighter for the Helix REPL. Applies color styling to commands, operators, string literals, numbers, and identifiers.
  • Constructor Details

    • HelixReplHighlighter

      public HelixReplHighlighter()
  • Method Details

    • highlight

      public org.jline.utils.AttributedString highlight(org.jline.reader.LineReader reader, String buffer)
      Specified by:
      highlight in interface org.jline.reader.Highlighter
    • setErrorPattern

      public void setErrorPattern(Pattern errorPattern)
      Specified by:
      setErrorPattern in interface org.jline.reader.Highlighter
    • setErrorIndex

      public void setErrorIndex(int errorIndex)
      Specified by:
      setErrorIndex in interface org.jline.reader.Highlighter