Merge branch 'master' into actions-ci

This commit is contained in:
Max Brunsfeld 2021-02-05 10:19:05 -08:00
commit 6dbe6a3a90
27 changed files with 932 additions and 460 deletions

View file

@ -448,6 +448,7 @@ TSTreeCursor ts_tree_cursor_copy(const TSTreeCursor *_cursor) {
TSTreeCursor res = {NULL, NULL, {0, 0}};
TreeCursor *copy = (TreeCursor *)&res;
copy->tree = cursor->tree;
array_init(&copy->stack);
array_push_all(&copy->stack, &cursor->stack);
return res;
}