Function tree_sitter::ffi::ts_query_disable_pattern
source · pub unsafe extern "C" fn ts_query_disable_pattern(
self_: *mut TSQuery,
pattern_index: u32
)
Expand description
Disable a certain pattern within a query.
This prevents the pattern from matching and removes most of the overhead associated with the pattern. Currently, there is no way to undo this.