public final class SyntaxHighlightResult

  1. Object
  2. SyntaxHighlightResult
Result of highlighting one source line, including the opaque state passed to the following line.

Fields

public final List<SyntaxToken> tokensOrdered, non-overlapping tokens for the line.
public final int endStateOpaque state passed to the highlighter for the next line.

Constructors

public SyntaxHighlightResult(List<SyntaxToken> tokens, int endState)Creates a line result.

Inherited methods

Field details

tokens

public final List<SyntaxToken> tokens
Ordered, non-overlapping tokens for the line.

endState

public final int endState
Opaque state passed to the highlighter for the next line.

Constructor details

SyntaxHighlightResult

public SyntaxHighlightResult(List<SyntaxToken> tokens, int endState)
Creates a line result.