mirror of
https://github.com/helix-editor/tree-house.git
synced 2025-10-06 00:12:46 +02:00
bindings: Vendor v0.25.5
This commit is contained in:
@@ -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
|
||||
|
3
bindings/vendor/src/portable/endian.h
vendored
3
bindings/vendor/src/portable/endian.h
vendored
@@ -23,7 +23,8 @@
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__CYGWIN__) || \
|
||||
defined(__MSYS__) || \
|
||||
defined(__EMSCRIPTEN__)
|
||||
defined(__EMSCRIPTEN__) || \
|
||||
defined(__wasi__)
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
#define _NETBSD_SOURCE 1
|
||||
|
12
bindings/vendor/src/tree_cursor.c
vendored
12
bindings/vendor/src/tree_cursor.c
vendored
@@ -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];
|
||||
|
Reference in New Issue
Block a user