add initial zig-tags.scm for repomap

This commit is contained in:
timput 2025-11-02 07:54:12 -07:00
parent 11516d6d6b
commit be8da40b1f
3 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,3 @@
(FnProto) @name.definition.function
(VarDecl "const" @name.definition.constant)
(VarDecl "var" @name.definition.variable)

View file

@ -334,6 +334,9 @@ class TestRepoMapAllLanguages(unittest.TestCase):
def test_language_tsx(self):
self._test_language_repo_map("tsx", "tsx", "UserProps")
def test_language_zig(self):
self._test_language_repo_map("zig", "zig", "add")
def test_language_csharp(self):
self._test_language_repo_map("csharp", "cs", "IGreeter")

10
tests/fixtures/languages/zig/test.zig vendored Normal file
View file

@ -0,0 +1,10 @@
const std = @import("std");
pub fn add(a: i32, b: i32) i32 {
return a + b;
}
pub fn main() !void {
const stdout = std.io.getStdOut().writer();
try stdout.print("{}", .{add(2, 3)});
}