tree_sitter::ffi

Function ts_query_cursor_did_exceed_match_limit

Source
pub unsafe extern "C" fn ts_query_cursor_did_exceed_match_limit(
    self_: *const TSQueryCursor,
) -> bool
Expand description

Manage the maximum number of in-progress matches allowed by this query cursor.

Query cursors have an optional maximum capacity for storing lists of in-progress captures. If this capacity is exceeded, then the earliest-starting match will silently be dropped to make room for further matches. This maximum capacity is optional — by default, query cursors allow any number of pending matches, dynamically allocating new space for them as needed as the query is executed.