Skip to main content

find_matching_bracket

Function find_matching_bracket 

Source
fn find_matching_bracket(s: &str) -> Option<usize>
Expand description

Find the index of the ] that closes the opening [ already consumed. Handles one level of nesting for inner blank nodes.