Add ts_document_invalidate, for forcing a full re-parse

This commit is contained in:
Max Brunsfeld 2015-10-18 13:05:40 -07:00
parent 1983bcfb60
commit 0955f660d0
3 changed files with 24 additions and 9 deletions

View file

@ -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