tree_sitter::ffi

Function ts_query_disable_capture

source
pub unsafe extern "C" fn ts_query_disable_capture(
    self_: *mut TSQuery,
    name: *const c_char,
    length: u32,
)
Expand description

Disable a certain capture within a query.

This prevents the capture from being returned in matches, and also avoids any resource usage associated with recording the capture. Currently, there is no way to undo this.