Fix miscounting of extra tokens when repairing errors

This commit is contained in:
Max Brunsfeld 2017-02-06 17:43:07 -08:00
parent 3edb5dbdd9
commit 343887c1dd
4 changed files with 45 additions and 7 deletions

View file

@ -68,6 +68,7 @@ typedef Array(TreePathEntry) TreePath;
bool ts_tree_array_copy(TreeArray, TreeArray *);
void ts_tree_array_delete(TreeArray *);
uint32_t ts_tree_array_essential_count(const TreeArray *);
TreeArray ts_tree_array_remove_last_n(TreeArray *, uint32_t);
Tree *ts_tree_make_leaf(TSSymbol, Length, Length, TSSymbolMetadata);
Tree *ts_tree_make_node(TSSymbol, uint32_t, Tree **, TSSymbolMetadata);