mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
A `.` anchor between a quantified pattern and a following node, e.g. `(parent (comment)* @c . (decl))`, was treated as a leading anchor when the quantifier matched zero. The zero-skip jumps a state directly onto the anchored step, where `is_immediate` was enforced even though no sibling had matched before it. Name that skip edge (`alternative_is_skip`) and, when a state follows it, record that it skipped the quantifier (`skipped_quantifier`). The immediate anchor is then supressoed for that state's next match. |
||
|---|---|---|
| .. | ||
| 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