Implement ts_find_parent_offset_point
This commit is contained in:
parent
8446b657f0
commit
2669933d06
3 changed files with 16 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue