commentEndAt

fun commentEndAt(source: CharSequence, index: Int): Int?

A comment closes either abruptly, with > or -> right after the opening, or at the first -->.

Return

index just past the comment's closing delimiter, or null when no comment starts at index

Parameters

source

text to inspect

index

index the comment must start at