Skip to content

Commit

Permalink
fix(highlight): correct signature of ts_highlighter_add_language
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed May 5, 2024
1 parent 67a0439 commit 90ba525
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion highlight/include/tree_sitter/highlight.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ void ts_highlighter_delete(TSHighlighter *);
// written in a different language.
TSHighlightError ts_highlighter_add_language(
TSHighlighter *self,
const char *language_name,
const char *scope_name,
const char *injection_regex,
const TSLanguage *language,
Expand All @@ -48,7 +49,7 @@ TSHighlightError ts_highlighter_add_language(
const char *locals_query,
uint32_t highlight_query_len,
uint32_t injection_query_len,
uint32_t locals_query_len,
uint32_t locals_query_len
);

// Compute syntax highlighting for a given document. You must first
Expand Down

0 comments on commit 90ba525

Please sign in to comment.