Remove TSLength from runtime header

Refactor node functions now that character offset and byte offset are stored separately
This commit is contained in:
Max Brunsfeld 2015-12-04 10:45:30 -08:00
parent 8e217f758c
commit 22c76fc71b
6 changed files with 101 additions and 106 deletions

View file

@ -16,6 +16,11 @@ typedef struct TSTree TSTree;
typedef unsigned short TSStateId;
typedef struct {
size_t bytes;
size_t chars;
} TSLength;
typedef struct {
bool visible : 1;
bool named : 1;