Indicate in C API that highlight method doesn't mutate Highlighter
This commit is contained in:
parent
eabecafa8d
commit
2a5409feab
2 changed files with 19 additions and 10 deletions
|
|
@ -75,7 +75,7 @@ int ts_highlighter_add_language(
|
|||
// Compute syntax highlighting for a given document. You must first
|
||||
// create a `TSHighlightBuffer` to hold the output.
|
||||
int ts_highlighter_highlight(
|
||||
TSHighlighter *self,
|
||||
const TSHighlighter *self,
|
||||
const char *scope_name,
|
||||
const char *source_code,
|
||||
uint32_t source_code_len,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue