fn match_delimiter(
chars: &[char],
i: usize,
word: &str,
) -> Option<(usize, bool, char)>Expand description
If chars[i..] starts a marker delimiter — [, optional /, word,
then : or ], with whitespace/ZWJ/ZWNJ allowed between the parts and
fullwidth forms accepted — returns its length and whether it closes.