tree_sitter::ffi

Function ts_query_cursor_next_match

Source
pub unsafe extern "C" fn ts_query_cursor_next_match(
    self_: *mut TSQueryCursor,
    match_: *mut TSQueryMatch,
) -> bool
Expand description

Advance to the next match of the currently running query.

If there is a match, write it to *match and return true. Otherwise, return false.