From 16c7bfb48fd1becc97f08c47725e8872401cb605 Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Tue, 25 Nov 2025 08:11:54 -0800 Subject: [PATCH] chore(parser): return `NULL`, not `false`, for incomplete parse Small nit; `NULL` is returned everywhere else in this function for an incomplete parse. (cherry picked from commit 4ae90615d1e5ffc7b75fe976e6c930ad748a10d9) --- lib/src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/parser.c b/lib/src/parser.c index bb2479113..714c2a19a 100644 --- a/lib/src/parser.c +++ b/lib/src/parser.c @@ -2179,7 +2179,7 @@ balance: ts_assert(self->finished_tree.ptr); if (!ts_parser__balance_subtree(self)) { self->canceled_balancing = true; - return false; + return NULL; } self->canceled_balancing = false; LOG("done");