@lezer/common
Advanced tools
Changelog
1.2.3 (2024-10-16)
Fix an issue in TreeCursor.iterate
that made it iterate through siblings of the current node.
Changelog
1.2.2 (2024-10-02)
Fix a bug in TreeCursor.matchContext
where, if the context fell partially in a buffer node and partially in tree nodes, it could return incorrect results.
Changelog
1.2.1 (2024-01-16)
Fix a bug where getChild
and getChildren
would, if the first and second arguments matched the same node, return incorrect results.
Changelog
1.2.0 (2023-12-28)
The new NodeProp.isolate
can be used by parser to signal that a given node should be treated as isolated when it comes to bidirectional text rendering.
Changelog
1.1.2 (2023-12-07)
Fix a crash that could happen in mixed-language parsing when mounting a tree to a zero-length node.
Changelog
1.1.1 (2023-11-10)
Fix a bug where resolveStack
could sometimes yield the same node multiple times.
Allow mixed-parsing trees to be mounted for zero-length nodes.
Fix a bug in mixed-language parsing that could some parts of an inner language to be missed when incrementally reparsing from a stopped parse.
In Tree.build
, when given an extremely deeply nested tree structure, flatten it instead of overflowing the stack.
Changelog
1.1.0 (2023-09-19)
The new Tree.resolveStack
method returns an iterator through the nodes covering a position, including those from overlays not active at that point.
Changelog
1.0.4 (2023-08-17)
Make the package usable in TypeScript with node16/nodenext resolution.
Changelog
1.0.3 (2023-06-02)
Tree.iterate
now properly includes anonymous nodes when IterMode.IncludeAnonymous
is enabled.