mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
`QueryMatches` and `QueryCaptures` retain query cursor options while they are being iterated. However, their types did not preserve the lifetime of the options' progress callback, allowing the callback to be dropped while it was still referenced by the cursor. Add an explicit options lifetime to both iterator types and propagate it through `matches_with_options` and `captures_with_options`. Use a static options lifetime for iterators created without options. |
||
|---|---|---|
| .. | ||
| binding_rust | ||
| binding_web | ||
| include/tree_sitter | ||
| lldb_pretty_printers | ||
| src | ||
| .ccls | ||
| Cargo.toml | ||
| LICENSE | ||
| package.nix | ||
| README.md | ||
| tree-sitter.pc.in | ||
Subdirectories
src- C source code for the Tree-sitter libraryinclude- C headers for the Tree-sitter librarybinding_rust- Rust bindings to the Tree-sitter librarybinding_web- JavaScript bindings to the Tree-sitter library, using WebAssembly