bindings: Vendor v0.25.5

This commit is contained in:
Michael Davis
2025-05-29 09:23:29 -04:00
parent ba30877d17
commit a8aa76d5b7
3 changed files with 11 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
REMOTE=https://github.com/tree-sitter/tree-sitter.git
BRANCH=v0.25.4
BRANCH=v0.25.5
rm -rf vendor
rm -rf tmp

View File

@@ -23,7 +23,8 @@
defined(__OpenBSD__) || \
defined(__CYGWIN__) || \
defined(__MSYS__) || \
defined(__EMSCRIPTEN__)
defined(__EMSCRIPTEN__) || \
defined(__wasi__)
#if defined(__NetBSD__)
#define _NETBSD_SOURCE 1

View File

@@ -129,14 +129,18 @@ static inline bool ts_tree_cursor_child_iterator_previous(
};
*visible = ts_subtree_visible(*child);
bool extra = ts_subtree_extra(*child);
if (!extra && self->alias_sequence) {
*visible |= self->alias_sequence[self->structural_child_index];
self->structural_child_index--;
}
self->position = length_backtrack(self->position, ts_subtree_padding(*child));
self->child_index--;
if (!extra && self->alias_sequence) {
*visible |= self->alias_sequence[self->structural_child_index];
if (self->child_index > 0) {
self->structural_child_index--;
}
}
// unsigned can underflow so compare it to child_count
if (self->child_index < self->parent.ptr->child_count) {
Subtree previous_child = ts_subtree_children(self->parent)[self->child_index];