Start work on document_parse_and_diff API

This commit is contained in:
Max Brunsfeld 2016-09-07 17:49:16 -07:00
parent b94a7bfd71
commit fce8d57152
5 changed files with 288 additions and 3 deletions

View file

@ -45,6 +45,11 @@ typedef struct {
size_t column;
} TSPoint;
typedef struct {
TSPoint start;
TSPoint end;
} TSRange;
typedef struct {
const void *data;
size_t offset[3];
@ -98,6 +103,7 @@ void ts_document_set_logger(TSDocument *, TSLogger);
void ts_document_print_debugging_graphs(TSDocument *, bool);
void ts_document_edit(TSDocument *, TSInputEdit);
int ts_document_parse(TSDocument *);
int ts_document_parse_and_diff(TSDocument *, TSRange **, size_t *);
void ts_document_invalidate(TSDocument *);
TSNode ts_document_root_node(const TSDocument *);
size_t ts_document_parse_count(const TSDocument *);