Swift API for the tree-sitter incremental parsing system
ResolvingQueryCursor
, introduction of ResolvingQueryMatchSequence
LanguageConfiguration
for easier language metadata and query loading.Full Changelog: https://github.com/ChimeHQ/SwiftTreeSitter/compare/0.7.2...0.8.0
NamedRange
Sendable
conformancesTreeSitterDocument
TSRange
is now Codable
, Hashable
, and Sendable
Point
is now Codable
and Sendable
NamedRange
API has been expanded to provide the name components#set!
directiveNamedRange
type to better support standardized query formatsQueryMatch.inject(with:)
to translate injections.scm
matches#match
predicate filtering when the regex match isn't the same length as the input textString
extension for easier integration with ResolvingQueryCursor
includedRanges
APItimeout
APINode
(thank you @kaunteya and @fjtrujy)ResolvingQueryCursor
Node
conforms to Equatable
QueryCapture
conforms to Comparable
#any-of?
, not-eq?
, not-match?
, not-any-of?
#match?
now only tests true on full matchesQueryCursor
is now a Sequence