mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
treesitter: update runtime
Update to 81d533d2d1b580fdb507accabc91ceddffb5b6f0.
This commit is contained in:
@@ -19,6 +19,7 @@ if [ ! -d "$ts_source_dir" ]; then
|
|||||||
git clone "$ts_url" "$ts_source_dir"
|
git clone "$ts_url" "$ts_source_dir"
|
||||||
else
|
else
|
||||||
echo "Found a non-empty $ts_source_dir directory..."
|
echo "Found a non-empty $ts_source_dir directory..."
|
||||||
|
git -C "$ts_source_dir" fetch
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Checking out $1..."
|
echo "Checking out $1..."
|
||||||
|
@@ -51,6 +51,7 @@ static inline void ts_free(void *buffer) {
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
static inline bool ts_toggle_allocation_recording(bool value) {
|
static inline bool ts_toggle_allocation_recording(bool value) {
|
||||||
|
(void)value;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -101,9 +101,10 @@ typedef struct {
|
|||||||
static const char *ts_string_input_read(
|
static const char *ts_string_input_read(
|
||||||
void *_self,
|
void *_self,
|
||||||
uint32_t byte,
|
uint32_t byte,
|
||||||
TSPoint _,
|
TSPoint pt,
|
||||||
uint32_t *length
|
uint32_t *length
|
||||||
) {
|
) {
|
||||||
|
(void)pt;
|
||||||
TSStringInput *self = (TSStringInput *)_self;
|
TSStringInput *self = (TSStringInput *)_self;
|
||||||
if (byte >= self->length) {
|
if (byte >= self->length) {
|
||||||
*length = 0;
|
*length = 0;
|
||||||
@@ -210,6 +211,7 @@ static ErrorComparison ts_parser__compare_versions(
|
|||||||
ErrorStatus a,
|
ErrorStatus a,
|
||||||
ErrorStatus b
|
ErrorStatus b
|
||||||
) {
|
) {
|
||||||
|
(void)self;
|
||||||
if (!a.is_in_error && b.is_in_error) {
|
if (!a.is_in_error && b.is_in_error) {
|
||||||
if (a.cost < b.cost) {
|
if (a.cost < b.cost) {
|
||||||
return ErrorComparisonTakeLeft;
|
return ErrorComparisonTakeLeft;
|
||||||
|
@@ -1267,7 +1267,7 @@ void ts_query_disable_pattern(
|
|||||||
* QueryCursor
|
* QueryCursor
|
||||||
***************/
|
***************/
|
||||||
|
|
||||||
TSQueryCursor *ts_query_cursor_new() {
|
TSQueryCursor *ts_query_cursor_new(void) {
|
||||||
TSQueryCursor *self = ts_malloc(sizeof(TSQueryCursor));
|
TSQueryCursor *self = ts_malloc(sizeof(TSQueryCursor));
|
||||||
*self = (TSQueryCursor) {
|
*self = (TSQueryCursor) {
|
||||||
.ascending = false,
|
.ascending = false,
|
||||||
|
@@ -480,6 +480,7 @@ StackSliceArray ts_stack_pop_count(Stack *self, StackVersion version, uint32_t c
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline StackAction pop_pending_callback(void *payload, const StackIterator *iterator) {
|
inline StackAction pop_pending_callback(void *payload, const StackIterator *iterator) {
|
||||||
|
(void)payload;
|
||||||
if (iterator->subtree_count >= 1) {
|
if (iterator->subtree_count >= 1) {
|
||||||
if (iterator->is_pending) {
|
if (iterator->is_pending) {
|
||||||
return StackActionPop | StackActionStop;
|
return StackActionPop | StackActionStop;
|
||||||
@@ -532,6 +533,7 @@ SubtreeArray ts_stack_pop_error(Stack *self, StackVersion version) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline StackAction pop_all_callback(void *payload, const StackIterator *iterator) {
|
inline StackAction pop_all_callback(void *payload, const StackIterator *iterator) {
|
||||||
|
(void)payload;
|
||||||
return iterator->node->link_count == 0 ? StackActionPop : StackActionNone;
|
return iterator->node->link_count == 0 ? StackActionPop : StackActionNone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1 +1 @@
|
|||||||
9a82dcc666d06617cbab3061467075019fae0b0d
|
81d533d2d1b580fdb507accabc91ceddffb5b6f0
|
||||||
|
Reference in New Issue
Block a user