mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:26:23 -04:00
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:
parent
d01bd9b1e5
commit
16c7bfb48f
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue