Change edit API to be byte-based

This commit is contained in:
Max Brunsfeld 2016-09-13 13:08:52 -07:00
parent cc62fe0375
commit 00528e50ce
11 changed files with 261 additions and 133 deletions

View file

@ -11,7 +11,7 @@ extern "C" {
typedef struct {
TSTree *tree;
size_t char_index;
size_t byte_index;
} ReusableNode;
typedef struct {
@ -24,7 +24,7 @@ typedef struct {
bool print_debugging_graphs;
TSTree scratch_tree;
TSTree *cached_token;
size_t cached_token_char_index;
size_t cached_token_byte_index;
ReusableNode reusable_node;
} Parser;