We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ts_highlighter_add_language
1 parent 67a0439 commit 90ba525Copy full SHA for 90ba525
highlight/include/tree_sitter/highlight.h
@@ -40,6 +40,7 @@ void ts_highlighter_delete(TSHighlighter *);
40
// written in a different language.
41
TSHighlightError ts_highlighter_add_language(
42
TSHighlighter *self,
43
+ const char *language_name,
44
const char *scope_name,
45
const char *injection_regex,
46
const TSLanguage *language,
@@ -48,7 +49,7 @@ TSHighlightError ts_highlighter_add_language(
48
49
const char *locals_query,
50
uint32_t highlight_query_len,
51
uint32_t injection_query_len,
- uint32_t locals_query_len,
52
+ uint32_t locals_query_len
53
);
54
55
// Compute syntax highlighting for a given document. You must first
0 commit comments