tree-sitter-python icon indicating copy to clipboard operation
tree-sitter-python copied to clipboard

Python grammar for tree-sitter

Results 58 tree-sitter-python issues
Sort by recently updated
recently updated
newest added

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...

bug

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 ![image](https://user-images.githubusercontent.com/164282/174895919-e9fbd43b-393c-40b4-a0ce-a2bb4d501adb.png)

![image](https://user-images.githubusercontent.com/164282/174820173-8183f1cb-cd03-44a3-b904-604561dd3094.png) I posted other instance here: https://github.com/tree-sitter/tree-sitter/issues/1773

bug

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...