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

@ -79,7 +79,8 @@ int ts_highlighter_highlight(
const char *scope_name,
const char *source_code,
uint32_t source_code_len,
TSHighlightBuffer *output
TSHighlightBuffer *output,
const uint32_t *cancellation_flag
);
// TSHighlightBuffer: This struct stores the HTML output of syntax