Class ReplHighlighter

java.lang.Object
org.ek9lang.cli.ReplHighlighter
All Implemented Interfaces:
org.jline.reader.Highlighter

public final class ReplHighlighter extends Object implements 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 Details

    • ReplHighlighter

      public ReplHighlighter()
  • 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