inlineMatch

fun inlineMatch(source: CharSequence, start: Int, end: Int, wrap: (TokenData) -> Token): InlineMatch

Builds a match whose token covers a source span.

Return

the resulting match

Parameters

source

the source being scanned

start

index of the match's first character

end

index just past the match's last character

wrap

constructor of the token