Function syntect::parsing::syntax_definition::context_iter[][src]

pub fn context_iter<'a>(
    syntax_set: &'a SyntaxSet,
    context: &'a Context
) -> MatchIter<'a>
Notable traits for MatchIter<'a>
impl<'a> Iterator for MatchIter<'a> type Item = (&'a Context, usize);
Expand description

Returns an iterator over all the match patterns in this context.

It recursively follows include directives. Can only be run on contexts that have already been linked up.