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 4ae90615d1)
This commit is contained in:
Riley Bruins 2025-11-25 08:11:54 -08:00 committed by Will Lillis
parent d01bd9b1e5
commit 16c7bfb48f

View file

@ -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");