tree_sitter_highlight::c_lib

Function ts_highlight_buffer_line_count

Source
#[no_mangle]
pub unsafe extern "C" fn ts_highlight_buffer_line_count(
    this: *const TSHighlightBuffer,
) -> u32
Expand description

Get the number of lines in a TSHighlightBuffer instance.

ยงSafety

this must be non-null and must be a valid pointer to a TSHighlightBuffer instance created by ts_highlight_buffer_new.