Skip to content

Bump github.com/odvcencio/gotreesitter from 0.56.0 to 0.57.0 - #57

Merged
andrew merged 1 commit into
mainfrom
dependabot/go_modules/github.com/odvcencio/gotreesitter-0.57.0
Nov 16, 2026
Merged

andrew merged 1 commit into
mainfrom
dependabot/go_modules/github.com/odvcencio/gotreesitter-0.57.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/odvcencio/gotreesitter from 0.56.0 to 0.57.0.

Release notes

Sourced from github.com/odvcencio/gotreesitter's releases.

gotreesitter v0.57.0

Highlights

  • Add a pure-Go command for parsing, queries, highlights, symbols and corpus tests.
  • Correct highlight priorities and inheritance, with explicit upgrade notes for changed captures.
  • On pinned fixtures, legacy YAML parse time fell 5.39% over 20 paired runs; a compact 1 MiB Go parse allocated 17.52% fewer bytes (#1486, #1504).

Upgrade notes

  • grammars.JSONTokenSource, NewJSONTokenSource and NewJSONTokenSourceOrEOF are removed, and the registry no longer routes json through a token source. To upgrade, call parser.Parse(src) where you called ParseWithTokenSource(src, grammars.NewJSONTokenSourceOrEOF(src, lang)), and parser.ParseIncremental(src, old) for incremental parses. Drop WithTokenSourceFactory from highlighters and taggers for JSON. Code that calls entry.TokenSourceFactory(...) without a nil check must check for nil and fall back to Parse. Trees differ from the old ones on 6 JSON files in the test corpus, and in each of them only the DFA tree matched C.

  • Highlight and its incremental and UTF-16 variants no longer return a range for a spell, nospell, conceal, none, underscore-prefixed or locals-directive capture. Code that reads a spell, none or underscore capture from Highlight no longer receives it.

  • Injected child layers keep their own pattern order on identical spans, as a standalone file does. Before, a layer lost its pattern indexes and the order of the matches decided. In a Markdown fence of starlark, { changes from punctuation.bracket to punctuation.special.

  • On a span that an injected language and its host both capture, the injected capture now wins. Before, the host's capture won unless it came from the first pattern of the host's query.

  • Queries that set (#set! priority N) now resolve overlaps by priority. Before, the directive had no effect and the narrower capture won. Sixteen shipped queries set a priority. In the diff query, the ---, +++, - and + markers now take diff.minus or diff.plus instead of punctuation.special. In hare, :outer in break :outer; is one label range where it was a punctuation.delimiter range and a variable range, and in tablegen, !add is one function range where it was a punctuation.special range and a function range.

  • ExternalVM scanner APIs are removed. Implement a Go gotreesitter.ExternalScanner instead (#1536).

  • The grammars facade drops per-language scanner aliases and unused helpers, including DecodeAndCertifyLanguageBlob. Import grammars/runtime for the equivalents exported there (#1536).

  • Replace corpuscheck.RunLanguageLimited with RunLanguageWithOptions and RunOptions{MaxCases: n} (#1536).

  • The tsquery command now requires -lang. Supply the registered grammar name so the query is compiled and validated before code generation (#1537).

... (truncated)

Changelog

Sourced from github.com/odvcencio/gotreesitter's changelog.

[0.57.0] - 2026-11-07

Highlights

  • Add a pure-Go command for parsing, queries, highlights, symbols and corpus tests.
  • Correct highlight priorities and inheritance, with explicit upgrade notes for changed captures.
  • On pinned fixtures, legacy YAML parse time fell 5.39% over 20 paired runs; a compact 1 MiB Go parse allocated 17.52% fewer bytes (#1486, #1504).

Upgrade notes

  • grammars.JSONTokenSource, NewJSONTokenSource and NewJSONTokenSourceOrEOF are removed, and the registry no longer routes json through a token source. To upgrade, call parser.Parse(src) where you called ParseWithTokenSource(src, grammars.NewJSONTokenSourceOrEOF(src, lang)), and parser.ParseIncremental(src, old) for incremental parses. Drop WithTokenSourceFactory from highlighters and taggers for JSON. Code that calls entry.TokenSourceFactory(...) without a nil check must check for nil and fall back to Parse. Trees differ from the old ones on 6 JSON files in the test corpus, and in each of them only the DFA tree matched C.

  • Highlight and its incremental and UTF-16 variants no longer return a range for a spell, nospell, conceal, none, underscore-prefixed or locals-directive capture. Code that reads a spell, none or underscore capture from Highlight no longer receives it.

  • Injected child layers keep their own pattern order on identical spans, as a standalone file does. Before, a layer lost its pattern indexes and the order of the matches decided. In a Markdown fence of starlark, { changes from punctuation.bracket to punctuation.special.

  • On a span that an injected language and its host both capture, the injected capture now wins. Before, the host's capture won unless it came from the first pattern of the host's query.

  • Queries that set (#set! priority N) now resolve overlaps by priority. Before, the directive had no effect and the narrower capture won. Sixteen shipped queries set a priority. In the diff query, the ---, +++, - and + markers now take diff.minus or diff.plus instead of punctuation.special. In hare, :outer in break :outer; is one label range where it was a punctuation.delimiter range and a variable range, and in tablegen, !add is one function range where it was a punctuation.special range and a function range.

  • ExternalVM scanner APIs are removed. Implement a Go gotreesitter.ExternalScanner instead (#1536).

  • The grammars facade drops per-language scanner aliases and unused helpers, including DecodeAndCertifyLanguageBlob. Import grammars/runtime for the equivalents exported there (#1536).

  • Replace corpuscheck.RunLanguageLimited with RunLanguageWithOptions and RunOptions{MaxCases: n} (#1536).

  • The tsquery command now requires -lang. Supply the registered grammar name so the query is compiled and validated before code generation

... (truncated)

Commits
  • d8f1556 release(docs): prepare v0.57.0 changelog and upgrades
  • f8d8fdf fix(powershell): parse native arguments with updated grammar
  • a89c50d fix(parsercorephase0): project discontinuity links before separating extras (...
  • 47e5ec3 perf(tree): page compact compatibility snapshots (#1577)
  • 7d38587 move(tests/layout): root API tests into roottest query/highlight (#1575)
  • e9f17b4 fix(grammargen): cast lex_modes initializer for pre-ABI-15 language exports (...
  • d083860 Reduce incremental DFA, publication and read-history overhead (#1570)
  • 26908c9 Avoid scanning dependencies for fresh missing leaves (#1571)
  • 6214c6b Compact selected-output unary policies (#1572)
  • a57ab70 optimize(yaml): scan comment content in batches (#1567)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by CodeRabbit

  • Chores
    • Updated an internal dependency to a newer version.

Bumps [github.com/odvcencio/gotreesitter](https://github.com/odvcencio/gotreesitter) from 0.56.0 to 0.57.0.
- [Release notes](https://github.com/odvcencio/gotreesitter/releases)
- [Changelog](https://github.com/odvcencio/gotreesitter/blob/main/CHANGELOG.md)
- [Commits](odvcencio/gotreesitter@v0.56.0...v0.57.0)

---
updated-dependencies:
- dependency-name: github.com/odvcencio/gotreesitter
  dependency-version: 0.57.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 16, 2026
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The required version of github.com/odvcencio/gotreesitter changes from v0.56.0 to v0.57.0 in go.mod.

Changes: Dependency version update

Layer / File(s) Summary
Update module requirement
go.mod
go.mod requires github.com/odvcencio/gotreesitter v0.57.0 instead of v0.56.0.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Suggested reviewers: andrew

Merge Risk: Minimal · up to 47bc7

This is a routine minor dependency update with matching checksums and no identified incompatibility. Run the existing parser and outline tests before merging.

Architecture risk: Low · up to 47bc7

The change affects 1 system.

Changed systems: go.mod

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — go.mod (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in go.mod: The required github.com/odvcencio/gotreesitter version changes from v0.56.0 to v0.57.0.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: a Dependabot bump of the direct dependency github.com/odvcencio/gotreesitter from 0.56.0 to 0.57.0. The raw summary confirms that go.mod is the only reviewed file and…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: a Dependabot bump of the direct dependency github.com/odvcencio/gotreesitter from 0.56.0 to 0.57.0. The raw summary confirms that go.mod is the only reviewed file and that its single change is this version upgrade. The title is specific and accurate, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e88be3f0-9f6d-4eb1-ae85-ec3f3882be7c
Commits

Reviewing files that changed from the base of the PR and between 1dd9ba7 and 47bc783.

Files ignored due to path filters: 1

  • go.sum is excluded by !**/*.sum
Files selected for processing: 1

  • go.mod

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@andrew
andrew merged commit 037f65a into main Nov 16, 2026
6 checks passed
@andrew
andrew deleted the dependabot/go_modules/github.com/odvcencio/gotreesitter-0.57.0 branch November 16, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant