difft::parse::tree_sitter_parser

Function find_delim_positions

Source
fn find_delim_positions(
    src: &str,
    cursor: &mut TreeCursor<'_>,
    lang_delims: &[(&str, &str)],
) -> Option<(usize, usize)>
Expand description

Are any of the children of the node at cursor delimiters? Return their indexes if so.