Repository navigation
v0.11.2
Release Notes (TinyTokenizer / TinyAst)
-
Query.Betweennow defaults to exclusiveQuery.Between(start, end)matches only the content between the start/end patterns (delimiters excluded).- To include delimiters, use
Query.Between(start, end, inclusive: true).
-
More reliable
BetweenQuerybehavior in compositionsBetweenQuerynow consumes a stable start→end span for matching (safer inSequence/composed queries), while editor operations still respect exclusive vs inclusive region boundaries.
-
Improved region selection performance for offset-based ranges
- Region traversal gained support for “offset regions” (regions that start after the matched node), enabling efficient selection for queries like
BetweenQuerywithout falling back to heavier traversal.
- Region traversal gained support for “offset regions” (regions that start after the matched node), enabling efficient selection for queries like
-
New convenience APIs for working from existing nodes
Query.Wrap(SyntaxBlock block)returns aBlockNodeQuery, enabling.Inner() / .Start() / .End()on an existing block node.Query.Wrap(SyntaxNode node)returns a block query for blocks or an exact-node query otherwise.Query.Inner(SyntaxBlock block)is shorthand forQuery.Wrap(block).Inner().
Upgrade Note
- If you previously relied on
Query.Between(start, end)including delimiters, change calls toQuery.Between(start, end, inclusive: true).