tree-sitter-python
tree-sitter-python copied to clipboard
Python grammar for tree-sitter
Can you please tag a new version? I’m maintainer of this package in Alpine Linux and just got a request to update to the latest revision in master branch because...
In this specific example, the `await` keyword isn't being properly highlighted: ```python async def region_exists(region: str) -> bool: return region in await all_regions() # ^^^^^ This keyword is not highlighted...
The syntax error related to the unbalanced parenthesis is detected for the whole function definition, but it could be marked only on the last line 
 I posted other instance here: https://github.com/tree-sitter/tree-sitter/issues/1773
What's the best way to separate out the string/byte prefixes (such as `f`, `r`, `u` and `b` before the quotes) from the string itself (maybe as a sub-node)? I understand...
## Swift Package Manager Swift's package manager can build C/C++ sources and use headers to expose functions to Swift. The standard tree-sitter parser project layout just requires a little extra...
[Sorry for the long post, thought best to give as much detail on this one as possible given it's quite niche] **The problem** In the following code snippet, both the...
Python's ast has `NotIn` as a node, should we also have it be a single node?
I was kind of expecting a `string_contents` node in the middle of the `string.children`. What is the best practice for getting string contents? ```py ipdb> root = py_parser().parse(b'"hi"').root_node ipdb> root.text...
Following up on https://github.com/tree-sitter/tree-sitter/pull/1547, this PR adds some unit tests for the tags queries. Luckily these queries are pretty straightforward, so it only takes a few tests to get good...