Add cancellation flag parameter to highlight API

This commit is contained in:
Max Brunsfeld 2019-03-18 09:52:02 -07:00
parent 0ae304f582
commit 8941dc1dda
4 changed files with 34 additions and 8 deletions

View file

@ -229,6 +229,7 @@ fn test_highlighting_via_c_api() {
source_code.as_ptr(),
source_code.as_bytes().len() as u32,
buffer,
ptr::null_mut(),
);
let output_bytes = c::ts_highlight_buffer_content(buffer);