diff --git a/Cargo.toml b/Cargo.toml index dd5832f..ec0482b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,12 +9,7 @@ edition = "2018" license = "MIT" build = "bindings/rust/build.rs" -include = [ - "bindings/rust/*", - "grammar.js", - "queries/*", - "src/*", -] +include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"] [lib] path = "bindings/rust/lib.rs" diff --git a/Package.swift b/Package.swift index 64f4c08..7846d7c 100644 --- a/Package.swift +++ b/Package.swift @@ -36,6 +36,7 @@ let package = Package( ], sources: [ "src/parser.c", + "src/scanner.c", // NOTE: if your language has an external scanner, add it here. ], resources: [ diff --git a/binding.gyp b/binding.gyp index 33c973d..ee3fb5f 100644 --- a/binding.gyp +++ b/binding.gyp @@ -11,6 +11,7 @@ "sources": [ "bindings/node/binding.cc", "src/parser.c", + "src/scanner.c", # NOTE: if your language has an external scanner, add it here. ], "cflags_c": [ diff --git a/bindings/go/binding.go b/bindings/go/binding.go index 01a2b9e..b2fbe8b 100644 --- a/bindings/go/binding.go +++ b/bindings/go/binding.go @@ -2,6 +2,7 @@ package tree_sitter_cmake // #cgo CFLAGS: -std=c11 -fPIC // #include "../../src/parser.c" +// #include "../../src/scanner.c" // // NOTE: if your language has an external scanner, add it here. import "C" diff --git a/pyproject.toml b/pyproject.toml index 3a449c7..795c2b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Topic :: Software Development :: Compilers", "Topic :: Text Processing :: Linguistic", - "Typing :: Typed" + "Typing :: Typed", ] requires-python = ">=3.8" license.text = "MIT" diff --git a/setup.py b/setup.py index 055cad6..e78050f 100644 --- a/setup.py +++ b/setup.py @@ -36,22 +36,18 @@ setup( sources=[ "bindings/python/tree_sitter_cmake/binding.c", "src/parser.c", + "src/scanner.c", # NOTE: if your language uses an external scanner, add it here. ], - extra_compile_args=( - ["-std=c11"] if system() != 'Windows' else [] - ), + extra_compile_args=(["-std=c11"] if system() != "Windows" else []), define_macros=[ ("Py_LIMITED_API", "0x03080000"), - ("PY_SSIZE_T_CLEAN", None) + ("PY_SSIZE_T_CLEAN", None), ], include_dirs=["src"], py_limited_api=True, ) ], - cmdclass={ - "build": Build, - "bdist_wheel": BdistWheel - }, - zip_safe=False + cmdclass={"build": Build, "bdist_wheel": BdistWheel}, + zip_safe=False, )