Start work toward maintaining external scanner's state during incremental parses
This commit is contained in:
parent
2b3da512a4
commit
e6c82ead2c
9 changed files with 131 additions and 70 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue