Start work on document_parse_and_diff API
This commit is contained in:
parent
b94a7bfd71
commit
fce8d57152
5 changed files with 288 additions and 3 deletions
|
|
@ -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 *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue