Skip to content

v0.11.2

Choose a tag to compare

@dsisco11 dsisco11 released this 12 Jan 12:18
· 2 commits to master since this release
907a77f

Release Notes (TinyTokenizer / TinyAst)

  • Query.Between now defaults to exclusive

    • Query.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 BetweenQuery behavior in compositions

    • BetweenQuery now consumes a stable start→end span for matching (safer in Sequence/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 BetweenQuery without falling back to heavier traversal.
  • New convenience APIs for working from existing nodes

    • Query.Wrap(SyntaxBlock block) returns a BlockNodeQuery, 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 for Query.Wrap(block).Inner().

Upgrade Note

  • If you previously relied on Query.Between(start, end) including delimiters, change calls to Query.Between(start, end, inclusive: true).