Skip to content

Commit

Permalink
Add treez zig module
Browse files Browse the repository at this point in the history
  • Loading branch information
neurocyte committed Feb 1, 2024
1 parent 0aa13b0 commit 128b5ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,6 @@
[submodule "tree-sitter-dockerfile"]
path = tree-sitter-dockerfile
url = https://github.com/camdencheek/tree-sitter-dockerfile.git
[submodule "treez"]
path = treez
url = https://github.com/ziglibs/treez.git
5 changes: 5 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ pub fn build(b: *std.Build) void {
b.installArtifact(lib);
lib.installHeadersDirectory("tree-sitter/lib/include/tree_sitter", "tree_sitter");

const mod = b.addModule("tree-sitter", .{
.root_source_file = .{ .path = "treez/treez.zig" },
});
mod.linkLibrary(lib);

installQueries(b, "agda");
installQueries(b, "bash");
installQueries(b, "c-sharp");
Expand Down
1 change: 1 addition & 0 deletions treez
Submodule treez added at d22821

0 comments on commit 128b5ff

Please sign in to comment.