tree-sitter-python
tree-sitter-python copied to clipboard
Python grammar for tree-sitter
If I have this code: ```python def func(first, second: str, third = 7, four: int = 1): print() ``` I got the following abstract tree: ``` module [0, 0] -...
Fixes #159
### Did you check the tree-sitter docs? - [X] I have read all the [tree-sitter docs](https://tree-sitter.github.io/tree-sitter/using-parsers) if it relates to using the parser ### Is your feature request related to...
(+) Adds more corpus tests.
### Did you check existing issues? - [X] I have read all the [tree-sitter docs](https://tree-sitter.github.io/tree-sitter/using-parsers) if it relates to using the parser - [X] I have searched the existing issues...
The src/tree_sitter/ directory is not included in the sdist so if we attempt to build from it, we get compilation errors due to missing headers. This fixes the sdist.
Compile using Makefile emit error: ```shell Makefile:41: *** unterminated call to function 'shell': missing ')'. Stop ``` It looks like the '#' and its following content are parsed into a...
In this code ```py @my_decorator def foo(): return 1 ``` ``` module [0, 0] - [3, 0] decorated_definition [0, 0] - [2, 10] decorator [0, 0] - [0, 13] identifier...
Hi there, I couldn’t find an explicit note in the documentation about which Python language version this grammar currently supports. Could you clarify which Python version(s) are fully or mostly...
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 2.1.1 to 2.1.3. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...