py-tree-sitter
py-tree-sitter copied to clipboard
Python bindings to the Tree-sitter parsing library
cc https://github.com/grantjenks/py-tree-sitter-languages/issues/21 https://github.com/grantjenks/py-tree-sitter-languages/pull/22 cc @amaanq @simonw @paul-gauthier @grantjenks
Bumps [tree_sitter/core](https://github.com/tree-sitter/tree-sitter) from `6ec478c` to `9d1ac21`. Commits 9d1ac21 Merge pull request #3430 from DavisVaughan/feature/snprintf-only 218a071 Swap sprintf() for snprintf() 34c4784 docs: add note for bullet See full diff in compare...
Bumps the actions group with 1 update: [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel). Updates `pypa/cibuildwheel` from 2.18 to 2.19 Release notes Sourced from pypa/cibuildwheel's releases. Version 2.19.0 Release post: https://iscinumpy.dev/post/cibuildwheel-2-19-0/ 🌟 Add a Pyodide platform....
Breaking changes are marked with `!`. ### 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` -...
The `_PyErr_FormatFromCause` function is a private function, which was never documented. While it existed for a long time, it was removed in Python 3.13 https://github.com/python/cpython/issues/106320. Use instead the public function...
Hello, I've been experimenting with what it would take to add wasm support to py-tree-sitter and wanted to get some feedback. Is there interest in merging this feature with py-tree-sitter?...
Currently the `keep_text` argument is deprecated: https://github.com/tree-sitter/py-tree-sitter/blob/master/tree_sitter/__init__.pyi#L253 What is the reason for that? I ask because I've seen that parsing with `keep_text=False` makes it several times faster. There are valid...
The function [`ts_parser_set_logger`](https://github.com/tree-sitter/tree-sitter/blob/800f2c41d0e35e4383172d7a67a16f3933b86039/lib/include/tree_sitter/api.h#L345) is not available in the `Parser` object. Is there a reason for this, or is this simply something that is 'not done yet'?
### Additions: - `Language.copy()` - `Language.node_kind_is_supertype(int)` - `Language.__copy__()` - `LogType` (enum) - `Node.field_name_for_named_child(int)` - `Parser.print_dot_graphs(TextIO | None)` - `Parser.logger` (getter + setter) - closes #264 - `Tree.copy()` - `Tree.print_dot_graph(TextIO)` -...
Closes #350