Fix miscounting of extra tokens when repairing errors
This commit is contained in:
parent
3edb5dbdd9
commit
343887c1dd
4 changed files with 45 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue