PairedHighlightRange

class PairedHighlightRange(start: TextPosition, end: TextPosition, highlight: Highlight, owner: Any? = null, other: PairedHighlightRange?) : HighlightRange

A HighlightRange, which is part of a matched pair, for example, an opening and closing bracket.

Always create PairedHighlightRange in pairs, never alone, or with more than two items.

Note, Scarea knows nothing of PairedHighlightRanges, and will happily remove one of them from its list, leaving the other untouched.

Constructors

Link copied to clipboard
constructor(start: TextPosition, end: TextPosition, highlight: Highlight, owner: Any? = null, other: PairedHighlightRange?)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun withBounds(start: TextPosition, end: TextPosition): PairedHighlightRange