@lezer/common
Advanced tools
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.
Changelog
1.0.2 (2022-11-23)
Fix a bug in mixed parsing that would sometimes produce invalid trees.
Changelog
1.0.1 (2022-08-30)
Fix a bug that could cause incremental parsing to incorrectly reuse nodes inside nested mixed parses.