option

fun KetexToken.option(): KetexToken

Appends an optional quantifier (?) to the current token.

Matches 0 or 1 of the preceding token, effectively making it optional.

See also