Start work toward maintaining external scanner's state during incremental parses

This commit is contained in:
Max Brunsfeld 2016-12-20 17:06:20 -08:00
parent 2b3da512a4
commit e6c82ead2c
9 changed files with 131 additions and 70 deletions

View file

@ -41,7 +41,7 @@ typedef struct Tree {
struct {
TSSymbol symbol;
TSStateId lex_state;
TSLexMode lex_mode;
} first_leaf;
unsigned short ref_count;
@ -51,6 +51,8 @@ typedef struct Tree {
bool fragile_left : 1;
bool fragile_right : 1;
bool has_changes : 1;
bool has_external_tokens : 1;
bool has_external_token_state : 1;
} Tree;
typedef struct {