Add ts_document_invalidate, for forcing a full re-parse
This commit is contained in:
parent
1983bcfb60
commit
0955f660d0
3 changed files with 24 additions and 9 deletions
|
|
@ -4,12 +4,14 @@
|
|||
#include "tree_sitter/parser.h"
|
||||
#include "runtime/parser.h"
|
||||
#include "runtime/tree.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
struct TSDocument {
|
||||
TSParser parser;
|
||||
TSInput input;
|
||||
TSTree *tree;
|
||||
size_t parse_count;
|
||||
bool valid;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue