Bump flake inputs
This means regenerating all the tree-sitter files, and adding newly generated outputs (mostly new bindings). The `--apply-all-captures` flag has been removed, it is now the default (and only) matching behaviour.
This commit is contained in:
parent
b04cd92189
commit
1af33aeea1
26 changed files with 718 additions and 59 deletions
5
bindings/python/tree_sitter_bp/__init__.py
Normal file
5
bindings/python/tree_sitter_bp/__init__.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
"Bp grammar for tree-sitter"
|
||||
|
||||
from ._binding import language
|
||||
|
||||
__all__ = ["language"]
|
||||
1
bindings/python/tree_sitter_bp/__init__.pyi
Normal file
1
bindings/python/tree_sitter_bp/__init__.pyi
Normal file
|
|
@ -0,0 +1 @@
|
|||
def language() -> int: ...
|
||||
27
bindings/python/tree_sitter_bp/binding.c
Normal file
27
bindings/python/tree_sitter_bp/binding.c
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#include <Python.h>
|
||||
|
||||
typedef struct TSLanguage TSLanguage;
|
||||
|
||||
TSLanguage *tree_sitter_bp(void);
|
||||
|
||||
static PyObject* _binding_language(PyObject *self, PyObject *args) {
|
||||
return PyLong_FromVoidPtr(tree_sitter_bp());
|
||||
}
|
||||
|
||||
static PyMethodDef methods[] = {
|
||||
{"language", _binding_language, METH_NOARGS,
|
||||
"Get the tree-sitter language for this grammar."},
|
||||
{NULL, NULL, 0, NULL}
|
||||
};
|
||||
|
||||
static struct PyModuleDef module = {
|
||||
.m_base = PyModuleDef_HEAD_INIT,
|
||||
.m_name = "_binding",
|
||||
.m_doc = NULL,
|
||||
.m_size = -1,
|
||||
.m_methods = methods
|
||||
};
|
||||
|
||||
PyMODINIT_FUNC PyInit__binding(void) {
|
||||
return PyModule_Create(&module);
|
||||
}
|
||||
0
bindings/python/tree_sitter_bp/py.typed
Normal file
0
bindings/python/tree_sitter_bp/py.typed
Normal file
Loading…
Add table
Add a link
Reference in a new issue