1 #ifndef TREE_SITTER_HIGHLIGHT_H_
2 #define TREE_SITTER_HIGHLIGHT_H_
26 const char **highlight_names,
27 const char **attribute_strings,
43 const char *scope_name,
44 const char *injection_regex,
46 const char *highlight_query,
47 const char *injection_query,
48 const char *locals_query,
58 const char *scope_name,
59 const char *source_code,
62 const size_t *cancellation_flag
void ts_highlight_buffer_delete(TSHighlightBuffer *)
void ts_highlighter_delete(TSHighlighter *)
TSHighlightBuffer * ts_highlight_buffer_new()
const uint8_t * ts_highlight_buffer_content(const TSHighlightBuffer *)
const uint32_t * ts_highlight_buffer_line_offsets(const TSHighlightBuffer *)
uint32_t ts_highlight_buffer_line_count(const TSHighlightBuffer *)
TSHighlightError ts_highlighter_add_language(TSHighlighter *self, const char *scope_name, const char *injection_regex, const TSLanguage *language, const char *highlight_query, const char *injection_query, const char *locals_query, uint32_t highlight_query_len, uint32_t injection_query_len, uint32_t locals_query_len)
uint32_t ts_highlight_buffer_len(const TSHighlightBuffer *)
TSHighlighter * ts_highlighter_new(const char **highlight_names, const char **attribute_strings, uint32_t highlight_count)
TSHighlightError ts_highlighter_highlight(const TSHighlighter *self, const char *scope_name, const char *source_code, uint32_t source_code_len, TSHighlightBuffer *output, const size_t *cancellation_flag)
struct TSHighlighter TSHighlighter
@ TSHighlightInvalidLanguage
@ TSHighlightUnknownScope
@ TSHighlightInvalidRegex
@ TSHighlightInvalidQuery
struct TSHighlightBuffer TSHighlightBuffer