mirror of
https://github.com/elladunbar/tree-sitter-zanscript.git
synced 2025-11-05 15:19:55 -06:00
Corrected all your language name references
This commit is contained in:
parent
9392139a9c
commit
073ab245c7
22 changed files with 42 additions and 176 deletions
10
setup.py
generated
10
setup.py
generated
|
|
@ -9,7 +9,7 @@ from wheel.bdist_wheel import bdist_wheel
|
|||
class Build(build):
|
||||
def run(self):
|
||||
if isdir("queries"):
|
||||
dest = join(self.build_lib, "tree_sitter_YOUR_LANGUAGE_NAME", "queries")
|
||||
dest = join(self.build_lib, "tree_sitter_zanscript", "queries")
|
||||
self.copy_tree("queries", dest)
|
||||
super().run()
|
||||
|
||||
|
|
@ -26,15 +26,15 @@ setup(
|
|||
packages=find_packages("bindings/python"),
|
||||
package_dir={"": "bindings/python"},
|
||||
package_data={
|
||||
"tree_sitter_your_language_name": ["*.pyi", "py.typed"],
|
||||
"tree_sitter_your_language_name.queries": ["*.scm"],
|
||||
"tree_sitter_zanscript": ["*.pyi", "py.typed"],
|
||||
"tree_sitter_zanscript.queries": ["*.scm"],
|
||||
},
|
||||
ext_package="tree_sitter_your_language_name",
|
||||
ext_package="tree_sitter_zanscript",
|
||||
ext_modules=[
|
||||
Extension(
|
||||
name="_binding",
|
||||
sources=[
|
||||
"bindings/python/tree_sitter_your_language_name/binding.c",
|
||||
"bindings/python/tree_sitter_zanscript/binding.c",
|
||||
"src/parser.c",
|
||||
# NOTE: if your language uses an external scanner, add it here.
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue