tree-sitter.tree-sitter/crates
Will Lillis aa1b924997 fix(generate): defer token rewrites until lexical expansion
In a future feature, `RulePool` nodes can be shared between lexical and
syntax roots. No grammars generated by grammar.js/grammra.json are affected
by this issue, as they lead to a tree pool rather than a DAG.

With a DAG `RulePool` representation, however, rewriting tokens during
extraction can destroy a token body before lexical expansion consumes
it and can renumber shared syntax nodes more than once.

Record terminal rewrites while inspecting the original pool, expand tokens
and separators first, then commit the rewrites and renumber each reachable
syntax node once. Resolve grammar metadata against the pending rewrites
before mutating the pool.
2026-08-30 14:23:29 -04:00
..
cli chore: start working on v0.28 2026-08-30 19:50:28 +02:00
config fix(toml): drop align_entries = true from .taplo.toml 2026-08-29 11:10:37 +02:00
generate fix(generate): defer token rewrites until lexical expansion 2026-08-30 14:23:29 -04:00
highlight fix(rust)!: expose QueryMatch::captures as a method 2026-08-30 02:58:20 -04:00
language fix(toml): drop align_entries = true from .taplo.toml 2026-08-29 11:10:37 +02:00
loader fix(toml): drop align_entries = true from .taplo.toml 2026-08-29 11:10:37 +02:00
tags fix(rust)!: expose QueryMatch::captures as a method 2026-08-30 02:58:20 -04:00
xtask fix(toml): drop align_entries = true from .taplo.toml 2026-08-29 11:10:37 +02:00