MatchDecorator
constructor(regexp: Regex, decorate: (add: (from: Int, to: Int, deco: Decoration) -> Unit, match: MatchResult, view: EditorSession) -> Unit, maxLength: Int)
Parameters
regexp
The regular expression to match. Must have the g flag (or Kotlin's findAll equivalent).
decorate
Called for each match; returns a Decoration (or null to skip this match).
boundary
Optional positive-lookahead boundary (not used in Kotlin port).
maxLength
Maximum characters to scan per viewport update. Defaults to 1 000 000 (effectively unbounded).