find_all_with_regex

Function find_all_with_regex 

Source
pub fn find_all_with_regex<'a>(
    query: &Query,
    document: &'a Document,
    regex: &Regex,
) -> Vec<(Match<'a>, usize)>
Expand description

Find matches in the document with the provided regex

This function identifies comments in the tree_sitter::Tree of the Document and then runs a regex search on the comment lines.

ยงReturns

A vector of tuples containing the Match and the line number