docs: various fixes
Closes https://github.com/tree-sitter/tree-sitter/issues/1317. Closes https://github.com/tree-sitter/tree-sitter/issues/1752. Closes https://github.com/tree-sitter/tree-sitter/issues/2439. Co-authored-by: Simon Hengel <sol@typeful.net> Co-authored-by: Akash Yadav <itsaky01@gmail.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Laytan Laats <laytanlaats@hotmail.com>
This commit is contained in:
parent
ea7f6e1fa3
commit
df1fe842eb
15 changed files with 21 additions and 20 deletions
|
|
@ -1768,7 +1768,7 @@ static unsigned ts_parser__condense_stack(TSParser *self) {
|
|||
}
|
||||
}
|
||||
|
||||
// Enfore a hard upper bound on the number of stack versions by
|
||||
// Enforce a hard upper bound on the number of stack versions by
|
||||
// discarding the least promising versions.
|
||||
while (ts_stack_version_count(self->stack) > MAX_VERSION_COUNT) {
|
||||
ts_stack_remove_version(self->stack, MAX_VERSION_COUNT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue