Indicate in C API that highlight method doesn't mutate Highlighter

This commit is contained in:
Max Brunsfeld 2019-03-13 09:22:09 -07:00
parent eabecafa8d
commit 2a5409feab
2 changed files with 19 additions and 10 deletions

View file

@ -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,