Skip to content

fix(lib): Consider subtree lookahead bytes when determining whether the parser can reuse a node. - #5656

Merged
WillLillis merged 1 commit into
release-0.26from
backport-5641-to-release-0.26
Jun 1, 2026
Merged

WillLillis merged 1 commit into
release-0.26from
backport-5641-to-release-0.26

Conversation

@tree-sitter-ci-bot

Copy link
Copy Markdown

Description

Backport of #5641 to release-0.26.

parser can reuse a node.

Lookahead bytes can be used to decide what a node is parsed as, so it's
resaonable to consider this as part of a node's "range" when deciding
which edits affect it.

(cherry picked from commit 15ddfb2)
@WillLillis
WillLillis merged commit 70068dd into release-0.26 Jun 1, 2026
20 checks passed
@WillLillis
WillLillis deleted the backport-5641-to-release-0.26 branch June 1, 2026 23:12
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
tree-sitter 0.26.10

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What's Changed
* fix(lib): update doc comment for `ts_parser_parse` by @WillLillis in tree-sitter/tree-sitter#5642
* fix(lib): use correct TREE_SITTER_HIDE_SYMBOLS macro name in alloc.h by @tree-sitter-ci-bot[bot] in tree-sitter/tree-sitter#5643
* fix(cli): improve soundness of cst range calculation by @WillLillis in tree-sitter/tree-sitter#5650
* fix(lib): Consider subtree lookahead bytes when determining whether the parser can reuse a node. by @tree-sitter-ci-bot[bot] in tree-sitter/tree-sitter#5656
* fix(cli): display warning to user if parser test corpus dir isn't found by @tree-sitter-ci-bot[bot] in tree-sitter/tree-sitter#5669
* fix: add DESCRIPTION to grammar Makefile template by @WillLillis in tree-sitter/tree-sitter#5672
* fix(cli): infinite loop in highlight test by @WillLillis in tree-sitter/tree-sitter#5674
* fix(lib): address strict aliasing violations in `TreeCursor` type by @WillLillis in tree-sitter/tree-sitter#5693
* build(deps): bump wasmtime-c-api to v36.0.12 by @clason in tree-sitter/tree-sitter#5709
* fix(dsl): forbid invalid field names by @WillLillis in tree-sitter/tree-sitter#5710
* Fix issues with queries matching a parent node with anchored children (siblings) by @tree-sitter-ci-bot[bot] in tree-sitter/tree-sitter#5712
* test(query): regression test for anchored siblings inside a parent by @tree-sitter-ci-bot[bot] in tree-sitter/tree-sitter#5716
* release v0.26.10 by @WillLillis in tree-sitter/tree-sitter#5717


**Full Changelog**: https://github.com/tree-sitter/tree-sitter/compare/v0.26.9...v0.26.10</pre>
  <p>View the full release notes at <a href="/web-api/iframe-proxy?url=https://github.comhttps://github.com/tree-sitter/tree-sitter/releases/tag/v0.26.10">https://github.com/tree-sitter/tree-sitter/releases/tag/v0.26.10</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!12906
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant