Function tree_sitter_highlight::c_lib::ts_highlighter_new
source · #[no_mangle]
pub unsafe extern "C" fn ts_highlighter_new(
highlight_names: *const *const c_char,
attribute_strings: *const *const c_char,
highlight_count: u32
) -> *mut TSHighlighter
Expand description
Create a new TSHighlighter
instance.
§Safety
The caller must ensure that the highlight_names
and attribute_strings
arrays are valid for
the lifetime of the returned TSHighlighter
instance, and are non-null.