HighlightSpan

class HighlightSpan(val start: Int, val end: Int, val captureName: String)

A theme-independent highlight range within a single HighlightedLine.

start and end are UTF-16 offsets into HighlightedLine.text. end is exclusive, and start < end holds for every span the library produces. captureName is the tree-sitter capture name that is resolved against a SyntaxTheme only when the line is rendered.

Constructors

Link copied to clipboard
constructor(start: Int, end: Int, captureName: String)

Properties

Link copied to clipboard
Link copied to clipboard
val end: Int
Link copied to clipboard
val start: Int

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String