Implement ts_find_parent_offset_point

This commit is contained in:
joshvera 2015-11-25 11:08:44 -05:00
parent 8446b657f0
commit 2669933d06
3 changed files with 16 additions and 1 deletions

View file

@ -74,7 +74,7 @@ static inline TSNode ts_node__prev_sibling(TSNode self, TSNodeType type) {
do {
size_t index = tree->context.index;
offset = ts_length_sub(offset, tree->context.offset);
offset_point = ts_find_parent_offset_point(tree, point);
offset_point = ts_find_parent_offset_point(tree);
tree = tree->context.parent;
if (!tree)
break;