Change edit API to be byte-based
This commit is contained in:
parent
cc62fe0375
commit
00528e50ce
11 changed files with 261 additions and 133 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue