Skip to content

chore(deps): Bump github.com/odvcencio/gotreesitter from 0.20.5 to 0.20.8#55

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/odvcencio/gotreesitter-0.20.8
Closed

chore(deps): Bump github.com/odvcencio/gotreesitter from 0.20.5 to 0.20.8#55
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/odvcencio/gotreesitter-0.20.8

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 2, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/odvcencio/gotreesitter from 0.20.5 to 0.20.8.

Release notes

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

v0.20.8

Added — consumer-controllable forest parsing

Downstream consumers that generate a parser table with grammargen can now opt their own grammar into the GSS-forest GLR fast path without forking gotreesitter, via three surfaces:

  • Language.WantsForest — Go field; gob-serialized, so it's baked into GenerateLanguageAndBlob output and backward-compatible.
  • grammargen.Grammar.WantsForest — Go flag on the grammar IR, plumbed onto the assembled Language.
  • "gotreesitter": { "wantsForest": true } in grammar.json — declarative; read by ImportGrammarJSON and mirrored back by ExportGrammarJSON only when set, so standard grammars' output is byte-unchanged.

Built-in languages keep their curated, byte-range parity-certified forest defaults (behavior unchanged). Consumer opt-in is at the consumer's responsibility — the forest's decline→production fallback still prevents hard failures on declined inputs, but a clean-but-different tree is the consumer's to own. ExtendGrammar inherits the flag from its base grammar.

Full Changelog: odvcencio/gotreesitter@v0.20.7...v0.20.8

v0.20.7

Fixed

  • Parser timeout and cancellation budgets now flow through the parser loop, recovery reparses, result compatibility/finalization, and Go normalization, so strict parses stop consistently instead of continuing unbounded work after the primary parse (#114, #128).
  • F# external-scanner keyword dedent fallback now guards empty indentation stacks for then, and, with, else, elif, and end, preventing scanner panics on malformed or edge-case indentation (#129, #130).
  • Swift if … else if … trailing-closure ambiguity recovery now follows the whole chain and requires a byte-faithful reparse, preventing collapsed function declarations from being accepted (#131, #132).

v0.20.6

Patch release for parser recovery correctness, grammargen parity, and the forest/performance workstream merged after v0.20.5.

Added

  • Strict parse variants return ErrParseStoppedEarly for timeout, cancellation, token-source EOF, and parser safety-limit partial trees while preserving the returned tree for diagnostics.
  • NodeAtByte and NamedNodeAtByte helpers on Tree and Node for editor offset lookup without hand-written tree walks.
  • One-pass code-understanding helpers for common definition spans, call references, heritage edges, and enclosing-definition lookup.
  • Benchmarks comparing the one-pass code-understanding helpers against the tags-query path for both parse-plus-inspect and already-parsed trees.
  • grammars.LoadLanguage(name, blob) attaches registered external scanners and external lex-state tables when loading raw grammar blobs.
  • Language.Size() reports approximate decoded table and lookup-cache bytes for diagnostics and cache policy decisions.

Fixed

  • JavaScript, TypeScript, and TSX automatic-semicolon scanning now preserves standalone block statements before simple assignments such as {a}b=c, matching the C parser on minified bundle shapes (#111).
  • Large Go files with wide table-driven literals now have an opt-in Cobra regression gate so release validation catches parser stack overflows like the ParserPool.Parse crash reported against command_test.go and completions_test.go (#110).

... (truncated)

Changelog

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

[0.20.8] - 2026-07-01

Adds consumer-controllable forest parsing.

Added

  • Downstream consumers that generate a parser table with grammargen can opt their own grammar into the GSS-forest GLR fast path without forking, via three surfaces: the Language.WantsForest field (gob-serialized into blobs), the grammargen.Grammar.WantsForest flag, and a declarative "gotreesitter": { "wantsForest": true } object in grammar.json (read by ImportGrammarJSON, mirrored back by ExportGrammarJSON only when set, so standard grammars' output is unchanged). Built-in languages keep their curated, byte-range parity-certified forest defaults; consumer opt-in is at the consumer's responsibility, with the forest's decline→production fallback still preventing hard failures on declined inputs. ExtendGrammar inherits the flag from its base grammar (#134).

[0.20.7] - 2026-06-29

Patch release for parser timeout propagation and targeted language recovery scanner fixes merged after v0.20.6.

Fixed

  • Parser timeout and cancellation budgets now flow through the parser loop, recovery reparses, result compatibility/finalization, and Go normalization, so strict parses stop consistently instead of continuing unbounded work after the primary parse (#114, #128).
  • F# external-scanner keyword dedent fallback now guards empty indentation stacks for then, and, with, else, elif, and end, preventing scanner panics on malformed or edge-case indentation (#129, #130).
  • Swift if … else if … chains no longer collapse the enclosing function to _modifierless_function_declaration_no_body (#131). The trailing-closure ambiguity recovery now follows the whole if/else-if chain — the chained if keyword is swallowed into an ERROR node, so it is discovered by scanning from the body's matching close brace — and requires a byte-faithful reparse so a partially-bracketed chain (which silently truncates without an ERROR node) is rejected rather than accepted (#132).

[0.20.6] - 2026-06-28

Patch release for parser recovery correctness, grammargen parity, and the forest/performance workstream merged after v0.20.5.

Added

  • Strict parse variants return ErrParseStoppedEarly for timeout, cancellation, token-source EOF, and parser safety-limit partial trees while preserving the returned tree for diagnostics.

... (truncated)

Commits
  • c8315be chore(release): prepare v0.20.8
  • dcdad9c feat(parser): consumer opt-in forest parsing via Language.WantsForest (#134)
  • b4c15b5 chore(release): prepare v0.20.7
  • e9cf364 fix(grammars): guard F# scanner dedent fallback (#130)
  • 869ba15 Honor parser timeouts during Go result normalization (#128)
  • 27a635e Merge pull request #132 from richardwooding/fix/issue131-swift-else-if-chains
  • 3934aba fix(swift): harden chain scanners against unclosed comments; drop allocs
  • d5885dd fix(swift): recover if/else-if chains from trailing-closure collapse (#131)
  • 9ae64c2 document(docs): Add release notes for v0.20.6
  • 20a7a1e Merge pull request #105 from odvcencio/perf/forest-fail-fast
  • 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)

Bumps [github.com/odvcencio/gotreesitter](https://github.com/odvcencio/gotreesitter) from 0.20.5 to 0.20.8.
- [Release notes](https://github.com/odvcencio/gotreesitter/releases)
- [Changelog](https://github.com/odvcencio/gotreesitter/blob/main/CHANGELOG.md)
- [Commits](odvcencio/gotreesitter@v0.20.5...v0.20.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency go Pull requests that update Go module dependencies labels Jul 2, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #56.

@dependabot dependabot Bot closed this Jul 9, 2026
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/odvcencio/gotreesitter-0.20.8 branch July 9, 2026 20:54
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 go Pull requests that update Go module dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants