Go to the source code of this file.
|
TSHighlighter * | ts_highlighter_new (const char **highlight_names, const char **attribute_strings, uint32_t highlight_count) |
|
void | ts_highlighter_delete (TSHighlighter *) |
|
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) |
|
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) |
|
TSHighlightBuffer * | ts_highlight_buffer_new () |
|
void | ts_highlight_buffer_delete (TSHighlightBuffer *) |
|
const uint8_t * | ts_highlight_buffer_content (const TSHighlightBuffer *) |
|
const uint32_t * | ts_highlight_buffer_line_offsets (const TSHighlightBuffer *) |
|
uint32_t | ts_highlight_buffer_len (const TSHighlightBuffer *) |
|
uint32_t | ts_highlight_buffer_line_count (const TSHighlightBuffer *) |
|
◆ TSHighlightBuffer
◆ TSHighlighter
◆ TSHighlightError
Enumerator |
---|
TSHighlightOk | |
TSHighlightUnknownScope | |
TSHighlightTimeout | |
TSHighlightInvalidLanguage | |
TSHighlightInvalidUtf8 | |
TSHighlightInvalidRegex | |
TSHighlightInvalidQuery | |
Definition at line 10 of file highlight.h.
@ TSHighlightInvalidLanguage
@ TSHighlightUnknownScope
@ TSHighlightInvalidRegex
@ TSHighlightInvalidQuery
◆ ts_highlight_buffer_content()
◆ ts_highlight_buffer_delete()
◆ ts_highlight_buffer_len()
◆ ts_highlight_buffer_line_count()
◆ ts_highlight_buffer_line_offsets()
◆ ts_highlight_buffer_new()
◆ ts_highlighter_add_language()
◆ ts_highlighter_delete()
◆ ts_highlighter_highlight()
◆ ts_highlighter_new()