Add cancellation flag parameter to highlight API
This commit is contained in:
parent
0ae304f582
commit
8941dc1dda
4 changed files with 34 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue