konomanoasa-tree-sitter-python 0.3.0__tar.gz → 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {konomanoasa_tree_sitter_python-0.3.0/dist/metadata/konomanoasa_tree_sitter_python.egg-info → konomanoasa_tree_sitter_python-0.5.0}/PKG-INFO +4 -2
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/README.md +3 -1
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0/dist/metadata/konomanoasa_tree_sitter_python.egg-info}/PKG-INFO +4 -2
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/pyproject.toml +6 -3
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/queries/highlights.scm +65 -4
- konomanoasa_tree_sitter_python-0.5.0/src/parser.c +176951 -0
- konomanoasa_tree_sitter_python-0.5.0/src/scanner.c +993 -0
- konomanoasa_tree_sitter_python-0.5.0/src/tokens.h +494 -0
- konomanoasa_tree_sitter_python-0.3.0/src/parser.c +0 -512698
- konomanoasa_tree_sitter_python-0.3.0/src/scanner.c +0 -1813
- konomanoasa_tree_sitter_python-0.3.0/src/tokens.h +0 -227
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/LICENSE +0 -0
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/LICENSE-UNICODE +0 -0
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/bindings/python/__init__.py +0 -0
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/bindings/python/binding.c +0 -0
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/bindings/python/binding.pyi +0 -0
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/bindings/python/py.typed +0 -0
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/dist/metadata/konomanoasa_tree_sitter_python.egg-info/SOURCES.txt +0 -0
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/dist/metadata/konomanoasa_tree_sitter_python.egg-info/dependency_links.txt +0 -0
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/dist/metadata/konomanoasa_tree_sitter_python.egg-info/top_level.txt +0 -0
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/setup.cfg +0 -0
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/setup.py +0 -0
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/src/tree_sitter/alloc.h +0 -0
- {konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/src/tree_sitter/parser.h +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: konomanoasa-tree-sitter-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: Tree-sitter grammar for Python.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Repository, https://github.com/konomanoasa/tree-sitter-python
|
|
@@ -15,8 +15,10 @@ Dynamic: license-file
|
|
|
15
15
|
[](https://github.com/konomanoasa/tree-sitter-python/actions/workflows/ci.yaml)
|
|
16
16
|
[](https://crates.io/crates/konomanoasa-tree-sitter-python)
|
|
17
17
|
[](https://www.npmjs.com/package/@konomanoasa/tree-sitter-python)
|
|
18
|
+
[](https://pypi.org/project/konomanoasa-tree-sitter-python/)
|
|
18
19
|
|
|
19
|
-
[Tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for
|
|
20
|
+
[Tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for
|
|
21
|
+
Python 3.15.2.
|
|
20
22
|
|
|
21
23
|
## Installation
|
|
22
24
|
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
[](https://github.com/konomanoasa/tree-sitter-python/actions/workflows/ci.yaml)
|
|
4
4
|
[](https://crates.io/crates/konomanoasa-tree-sitter-python)
|
|
5
5
|
[](https://www.npmjs.com/package/@konomanoasa/tree-sitter-python)
|
|
6
|
+
[](https://pypi.org/project/konomanoasa-tree-sitter-python/)
|
|
6
7
|
|
|
7
|
-
[Tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for
|
|
8
|
+
[Tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for
|
|
9
|
+
Python 3.15.2.
|
|
8
10
|
|
|
9
11
|
## Installation
|
|
10
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: konomanoasa-tree-sitter-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: Tree-sitter grammar for Python.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Repository, https://github.com/konomanoasa/tree-sitter-python
|
|
@@ -15,8 +15,10 @@ Dynamic: license-file
|
|
|
15
15
|
[](https://github.com/konomanoasa/tree-sitter-python/actions/workflows/ci.yaml)
|
|
16
16
|
[](https://crates.io/crates/konomanoasa-tree-sitter-python)
|
|
17
17
|
[](https://www.npmjs.com/package/@konomanoasa/tree-sitter-python)
|
|
18
|
+
[](https://pypi.org/project/konomanoasa-tree-sitter-python/)
|
|
18
19
|
|
|
19
|
-
[Tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for
|
|
20
|
+
[Tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for
|
|
21
|
+
Python 3.15.2.
|
|
20
22
|
|
|
21
23
|
## Installation
|
|
22
24
|
|
{konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/pyproject.toml
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "konomanoasa-tree-sitter-python"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.5.0"
|
|
4
4
|
description = "Tree-sitter grammar for Python."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -17,7 +17,7 @@ dev = [
|
|
|
17
17
|
"setuptools==84.2.1",
|
|
18
18
|
"tree-sitter==0.27.0",
|
|
19
19
|
"twine==7.0.0",
|
|
20
|
-
"ty==
|
|
20
|
+
"ty==1.2.0",
|
|
21
21
|
]
|
|
22
22
|
|
|
23
23
|
[build-system]
|
|
@@ -26,7 +26,10 @@ build-backend = "setuptools.build_meta"
|
|
|
26
26
|
|
|
27
27
|
[tool.setuptools]
|
|
28
28
|
include-package-data = false
|
|
29
|
-
packages = [
|
|
29
|
+
packages = [
|
|
30
|
+
"tree_sitter_python",
|
|
31
|
+
"tree_sitter_python.queries",
|
|
32
|
+
]
|
|
30
33
|
|
|
31
34
|
[tool.setuptools.package-dir]
|
|
32
35
|
tree_sitter_python = "bindings/python"
|
{konomanoasa_tree_sitter_python-0.3.0 → konomanoasa_tree_sitter_python-0.5.0}/queries/highlights.scm
RENAMED
|
@@ -7,12 +7,15 @@
|
|
|
7
7
|
|
|
8
8
|
[
|
|
9
9
|
(string_prefix)
|
|
10
|
-
(string_open)
|
|
11
10
|
(string_content)
|
|
12
|
-
(string_close)
|
|
13
11
|
(format_text)
|
|
14
12
|
] @string
|
|
15
13
|
|
|
14
|
+
[
|
|
15
|
+
(string_open)
|
|
16
|
+
(string_close)
|
|
17
|
+
] @punctuation.delimiter
|
|
18
|
+
|
|
16
19
|
[
|
|
17
20
|
(escape_sequence)
|
|
18
21
|
(escaped_brace)
|
|
@@ -154,16 +157,75 @@
|
|
|
154
157
|
";"
|
|
155
158
|
] @punctuation.delimiter
|
|
156
159
|
|
|
160
|
+
(from_import_statement
|
|
161
|
+
"*" @character.special)
|
|
162
|
+
|
|
163
|
+
(except_group_clause
|
|
164
|
+
"*" @keyword.exception)
|
|
165
|
+
|
|
157
166
|
(relative_module
|
|
158
167
|
"..." @punctuation.delimiter)
|
|
159
168
|
|
|
169
|
+
[
|
|
170
|
+
(parameters
|
|
171
|
+
[
|
|
172
|
+
"*"
|
|
173
|
+
"/"
|
|
174
|
+
] @punctuation.delimiter)
|
|
175
|
+
(lambda_parameters
|
|
176
|
+
[
|
|
177
|
+
"*"
|
|
178
|
+
"/"
|
|
179
|
+
] @punctuation.delimiter)
|
|
180
|
+
(default_parameter
|
|
181
|
+
"=" @punctuation.delimiter)
|
|
182
|
+
(type_parameter
|
|
183
|
+
"=" @punctuation.delimiter)
|
|
184
|
+
(keyword_pattern
|
|
185
|
+
"=" @punctuation.delimiter)
|
|
186
|
+
(keyword_argument
|
|
187
|
+
"=" @punctuation.delimiter)
|
|
188
|
+
]
|
|
189
|
+
|
|
190
|
+
[
|
|
191
|
+
(variadic_parameter
|
|
192
|
+
"*" @punctuation.special)
|
|
193
|
+
(variadic_keyword_parameter
|
|
194
|
+
"**" @punctuation.special)
|
|
195
|
+
(type_parameter
|
|
196
|
+
[
|
|
197
|
+
"*"
|
|
198
|
+
"**"
|
|
199
|
+
] @punctuation.special)
|
|
200
|
+
(starred_expression
|
|
201
|
+
"*" @punctuation.special)
|
|
202
|
+
(starred_target
|
|
203
|
+
"*" @punctuation.special)
|
|
204
|
+
(dictionary_unpacking
|
|
205
|
+
"**" @punctuation.special)
|
|
206
|
+
(star_pattern
|
|
207
|
+
"*" @punctuation.special)
|
|
208
|
+
(rest_pattern
|
|
209
|
+
"**" @punctuation.special)
|
|
210
|
+
(starred_argument
|
|
211
|
+
"*" @punctuation.special)
|
|
212
|
+
(mapping_argument
|
|
213
|
+
"**" @punctuation.special)
|
|
214
|
+
]
|
|
215
|
+
|
|
216
|
+
[
|
|
217
|
+
(for_statement
|
|
218
|
+
"in" @keyword.repeat)
|
|
219
|
+
(for_clause
|
|
220
|
+
"in" @keyword.repeat)
|
|
221
|
+
]
|
|
222
|
+
|
|
160
223
|
(integer
|
|
161
224
|
[
|
|
162
225
|
(binary_digits)
|
|
163
226
|
(octal_digits)
|
|
164
227
|
(decimal_digits)
|
|
165
228
|
(hex_digits)
|
|
166
|
-
(number_fragment)
|
|
167
229
|
"0b"
|
|
168
230
|
"0B"
|
|
169
231
|
"0o"
|
|
@@ -176,7 +238,6 @@
|
|
|
176
238
|
(float
|
|
177
239
|
[
|
|
178
240
|
(decimal_digits)
|
|
179
|
-
(number_fragment)
|
|
180
241
|
"."
|
|
181
242
|
"_"
|
|
182
243
|
] @number.float)
|