tree-sitter-devicetree 0.11.1__cp38-abi3-win_amd64.whl → 0.12.1__cp38-abi3-win_amd64.whl
Sign up to get free protection for your applications and to get access to all the features.
- tree_sitter_devicetree/__init__.py +39 -2
- tree_sitter_devicetree/__init__.pyi +10 -1
- tree_sitter_devicetree/_binding.pyd +0 -0
- tree_sitter_devicetree/binding.c +2 -2
- {tree_sitter_devicetree-0.11.1.dist-info → tree_sitter_devicetree-0.12.1.dist-info}/METADATA +5 -4
- tree_sitter_devicetree-0.12.1.dist-info/RECORD +11 -0
- tree_sitter_devicetree-0.11.1.dist-info/RECORD +0 -11
- {tree_sitter_devicetree-0.11.1.dist-info → tree_sitter_devicetree-0.12.1.dist-info}/LICENSE +0 -0
- {tree_sitter_devicetree-0.11.1.dist-info → tree_sitter_devicetree-0.12.1.dist-info}/WHEEL +0 -0
- {tree_sitter_devicetree-0.11.1.dist-info → tree_sitter_devicetree-0.12.1.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,42 @@
|
|
1
|
-
"Devicetree
|
1
|
+
"""Tree-sitter parser for Devicetree files, with support for Zephyr's superset of Devicetree syntax."""
|
2
|
+
|
3
|
+
from importlib.resources import files as _files
|
2
4
|
|
3
5
|
from ._binding import language
|
4
6
|
|
5
|
-
|
7
|
+
|
8
|
+
def _get_query(name, file):
|
9
|
+
query = _files(f"{__package__}.queries") / file
|
10
|
+
globals()[name] = query.read_text()
|
11
|
+
return globals()[name]
|
12
|
+
|
13
|
+
|
14
|
+
def __getattr__(name):
|
15
|
+
# NOTE: uncomment these to include any queries that this grammar contains:
|
16
|
+
|
17
|
+
# if name == "HIGHLIGHTS_QUERY":
|
18
|
+
# return _get_query("HIGHLIGHTS_QUERY", "highlights.scm")
|
19
|
+
# if name == "INJECTIONS_QUERY":
|
20
|
+
# return _get_query("INJECTIONS_QUERY", "injections.scm")
|
21
|
+
# if name == "LOCALS_QUERY":
|
22
|
+
# return _get_query("LOCALS_QUERY", "locals.scm")
|
23
|
+
# if name == "TAGS_QUERY":
|
24
|
+
# return _get_query("TAGS_QUERY", "tags.scm")
|
25
|
+
|
26
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
27
|
+
|
28
|
+
|
29
|
+
__all__ = [
|
30
|
+
"language",
|
31
|
+
# "HIGHLIGHTS_QUERY",
|
32
|
+
# "INJECTIONS_QUERY",
|
33
|
+
# "LOCALS_QUERY",
|
34
|
+
# "TAGS_QUERY",
|
35
|
+
]
|
36
|
+
|
37
|
+
|
38
|
+
def __dir__():
|
39
|
+
return sorted(__all__ + [
|
40
|
+
"__all__", "__builtins__", "__cached__", "__doc__", "__file__",
|
41
|
+
"__loader__", "__name__", "__package__", "__path__", "__spec__",
|
42
|
+
])
|
@@ -1 +1,10 @@
|
|
1
|
-
|
1
|
+
from typing import Final
|
2
|
+
|
3
|
+
# NOTE: uncomment these to include any queries that this grammar contains:
|
4
|
+
|
5
|
+
# HIGHLIGHTS_QUERY: Final[str]
|
6
|
+
# INJECTIONS_QUERY: Final[str]
|
7
|
+
# LOCALS_QUERY: Final[str]
|
8
|
+
# TAGS_QUERY: Final[str]
|
9
|
+
|
10
|
+
def language() -> object: ...
|
Binary file
|
tree_sitter_devicetree/binding.c
CHANGED
@@ -4,8 +4,8 @@ typedef struct TSLanguage TSLanguage;
|
|
4
4
|
|
5
5
|
TSLanguage *tree_sitter_devicetree(void);
|
6
6
|
|
7
|
-
static PyObject* _binding_language(PyObject *self, PyObject *args) {
|
8
|
-
return
|
7
|
+
static PyObject* _binding_language(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(args)) {
|
8
|
+
return PyCapsule_New(tree_sitter_devicetree(), "tree_sitter.Language", NULL);
|
9
9
|
}
|
10
10
|
|
11
11
|
static PyMethodDef methods[] = {
|
{tree_sitter_devicetree-0.11.1.dist-info → tree_sitter_devicetree-0.12.1.dist-info}/METADATA
RENAMED
@@ -1,9 +1,10 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tree-sitter-devicetree
|
3
|
-
Version: 0.
|
4
|
-
Summary: Devicetree
|
3
|
+
Version: 0.12.1
|
4
|
+
Summary: Tree-sitter parser for Devicetree files, with support for Zephyr's superset of Devicetree syntax.
|
5
|
+
Author: Joel Spadin
|
5
6
|
License: MIT
|
6
|
-
Project-URL: Homepage, https://github.com/
|
7
|
+
Project-URL: Homepage, https://github.com/joelspadin/tree-sitter-devicetree
|
7
8
|
Keywords: incremental,parsing,tree-sitter,devicetree
|
8
9
|
Classifier: Intended Audience :: Developers
|
9
10
|
Classifier: License :: OSI Approved :: MIT License
|
@@ -14,7 +15,7 @@ Requires-Python: >=3.9
|
|
14
15
|
Description-Content-Type: text/markdown
|
15
16
|
License-File: LICENSE
|
16
17
|
Provides-Extra: core
|
17
|
-
Requires-Dist: tree-sitter~=0.
|
18
|
+
Requires-Dist: tree-sitter~=0.22; extra == "core"
|
18
19
|
|
19
20
|
# tree-sitter-devicetree
|
20
21
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
tree_sitter_devicetree/__init__.py,sha256=L3j5_idUq9N8KWMTtG9HhAU8yGO81fcWzhP5e3a-Uv0,1264
|
2
|
+
tree_sitter_devicetree/__init__.pyi,sha256=5PpnU-DcLaVLkGPg6kBekYP0F2akGGFq3wlbY1MCK4A,257
|
3
|
+
tree_sitter_devicetree/_binding.pyd,sha256=QaB_FqzFAt1B5ryio1wmLEfyKB1hEdnmbTBRokJtomI,161792
|
4
|
+
tree_sitter_devicetree/binding.c,sha256=c5Lvkl1pv_yi8YjVq5sfEtl4HqkUH_gzwUU74SS0tsI,718
|
5
|
+
tree_sitter_devicetree/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
tree_sitter_devicetree/queries/highlights.scm,sha256=UZu03Ll-vNq6fRXozQ25VCuSEwjT5KmheRYq7wG3ojQ,962
|
7
|
+
tree_sitter_devicetree-0.12.1.dist-info/LICENSE,sha256=NwWFACMb3acwkc67gNAuLw0WZVeN6bVNYFFMO6nky0U,1097
|
8
|
+
tree_sitter_devicetree-0.12.1.dist-info/METADATA,sha256=IL2iJcDnYThSLSNHgsdW7smhZXDe3Xli27GLnkMW2rU,1069
|
9
|
+
tree_sitter_devicetree-0.12.1.dist-info/WHEEL,sha256=HyrewbdGRFSiCNDH2b5_R6gC8PlUKJwC5UbQxS7ZzNk,100
|
10
|
+
tree_sitter_devicetree-0.12.1.dist-info/top_level.txt,sha256=jv6jDMuzAt9jDH9LI-C4CSek3wnQmz-agZrtTybV6sY,32
|
11
|
+
tree_sitter_devicetree-0.12.1.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
tree_sitter_devicetree/__init__.py,sha256=ykO9aMlntsfcKqRDEWBbLMp494TM5W3DBLY_o0M2Ud8,98
|
2
|
-
tree_sitter_devicetree/__init__.pyi,sha256=u8xQzb5Klx7aVoyDlksLHkE7SXkMIO0hmR6yvl_L_40,28
|
3
|
-
tree_sitter_devicetree/_binding.pyd,sha256=M8OwgEvccwrUziPzHX_z_3QqfRjDyTh0j1O4D3sMj2M,161792
|
4
|
-
tree_sitter_devicetree/binding.c,sha256=W3q3Jqt_EWyuDjsqJ36Weidoc6wG6M0zD8ynp9aVmb8,671
|
5
|
-
tree_sitter_devicetree/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
tree_sitter_devicetree/queries/highlights.scm,sha256=UZu03Ll-vNq6fRXozQ25VCuSEwjT5KmheRYq7wG3ojQ,962
|
7
|
-
tree_sitter_devicetree-0.11.1.dist-info/LICENSE,sha256=NwWFACMb3acwkc67gNAuLw0WZVeN6bVNYFFMO6nky0U,1097
|
8
|
-
tree_sitter_devicetree-0.11.1.dist-info/METADATA,sha256=_2iXQ-sSK1Q8HxbVbRNE-LC6fusVrAF1CNh4rEzM-Tc,986
|
9
|
-
tree_sitter_devicetree-0.11.1.dist-info/WHEEL,sha256=HyrewbdGRFSiCNDH2b5_R6gC8PlUKJwC5UbQxS7ZzNk,100
|
10
|
-
tree_sitter_devicetree-0.11.1.dist-info/top_level.txt,sha256=jv6jDMuzAt9jDH9LI-C4CSek3wnQmz-agZrtTybV6sY,32
|
11
|
-
tree_sitter_devicetree-0.11.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{tree_sitter_devicetree-0.11.1.dist-info → tree_sitter_devicetree-0.12.1.dist-info}/top_level.txt
RENAMED
File without changes
|