Path to this page:
./
textproc/py-tree-sitter,
Python bindings to the Tree-sitter parsing library
Branch: CURRENT,
Version: 0.23.2,
Package name: py312-tree-sitter-0.23.2,
Maintainer: kamelderouicheThis module provides Python bindings to the tree-sitter parsing library
Master sites:
Version history: (Expand)
- (2024-11-25) Updated to version: py312-tree-sitter-0.23.2
- (2024-10-09) Updated to version: py312-tree-sitter-0.23.1
- (2024-09-15) Updated to version: py312-tree-sitter-0.23.0
- (2024-08-12) Package added to pkgsrc.se, version py312-tree-sitter-0.22.3 (created)
CVS history: (Expand)
2024-11-25 12:28:24 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-tree-sitter: updated to 0.23.2
0.23.2
Update documentation on Query.captures()
build: bump tree_sitter/core from 46bdc14 to f629fd4
fix(query): iterate over captures for the shortest size, not longest
|
2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862) |
Log message:
py-*: remove unused tool dependency
py-setuptools includes the py-wheel functionality nowadays
|
2024-10-09 10:08:26 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-tree-sitter: updated to 0.23.1
0.23.1
build: bump tree_sitter/core from 12fb318 to ee06325
ci: bump pypa/cibuildwheel from 2.20 to 2.21 in the actions group
|
2024-09-19 08:39:48 by Thomas Klausner | Files touched by this commit (2) |
Log message:
py-tree-sitter: distfile name conflicts with tree-sitter
Set DIST_SUBDIR.
|
2024-09-15 10:06:10 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-tree-sitter: updated to 0.23.0
0.23.0
Additions:
Node.child_containing_descendant(descendant)
Tree.language (getter)
Query.pattern_count (getter)
Query.capture_count (getter)
Query.match_limit (getter)
Query.did_exceed_match_limit (getter)
Query.set_match_limit(match_limit): returns self
Query.set_max_start_depth(max_start_depth): returns self
Query.set_byte_range(byte_range): returns self
Query.set_point_range(point_range): returns self
Query.disable_pattern(index): returns self
Query.disable_capture(capture): returns self
Query.pattern_settings(index)
Query.pattern_assertions(index)
Query.start_byte_for_pattern(index)
Query.end_byte_for_pattern(index)
Query.is_pattern_rooted(index)
Query.is_pattern_non_local(index)
Query.is_pattern_guaranteed_at_step(offset)
QueryError (exception class)
QueryPredicate (typing protocol)
Removals:
Parser.set_language(language)
Parser.set_included_ranges(ranges)
Parser.set_timeout_micros(timeout)
Node.sexp()
Tree.text()
TreeCursor.goto_first_child_for_point(row, column)
LookaheadIterator.reset(language, state)
Changes:
Language() accepts a capsule as an argument.
Parser.parse(...) no longer accepts a keep_text argument.
Query.captures(...)
Range arguments were removed (use set_* instead).
Added an argument for custom query predicates.
Return type was changed to dict[str, list[Node]].
Query.matches(...)
Range arguments were removed (use set_* instead).
Added an argument for custom query predicates.
Return type was changed to list[tuple[int, dict[str, list[Node]]]].
TreeCursor.goto_first_child_for_byte(byte) returns int | None.
TreeCursor.goto_first_child_for_point(point) returns int | None.
|
2024-08-12 13:58:49 by Thomas Klausner | Files touched by this commit (4) |
Log message:
textproc/py-tree-sitter: import py-tree-sitter-0.22.3
This module provides Python bindings to the tree-sitter parsing library
|