tree_sitter::ffi

Function ts_query_end_byte_for_pattern

source
pub unsafe extern "C" fn ts_query_end_byte_for_pattern(
    self_: *const TSQuery,
    pattern_index: u32,
) -> u32
Expand description

Get the byte offset where the given pattern ends in the query’s source.

This can be useful when combining queries by concatenating their source code strings.