aboutsummaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/zig.h17
-rw-r--r--queries/zig.scm6
2 files changed, 23 insertions, 0 deletions
diff --git a/queries/zig.h b/queries/zig.h
new file mode 100644
index 0000000..cf78311
--- /dev/null
+++ b/queries/zig.h
@@ -0,0 +1,17 @@
1unsigned char query_zig[] = {
2 0x28, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65,
3 0x63, 0x6c, 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x0a, 0x20, 0x20,
4 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x20, 0x28, 0x69, 0x64, 0x65, 0x6e, 0x74,
5 0x69, 0x66, 0x69, 0x65, 0x72, 0x29, 0x20, 0x40, 0x66, 0x6e, 0x61, 0x6d,
6 0x65, 0x29, 0x0a, 0x0a, 0x28, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c,
7 0x65, 0x5f, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f,
8 0x6e, 0x0a, 0x20, 0x20, 0x28, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66,
9 0x69, 0x65, 0x72, 0x29, 0x20, 0x40, 0x66, 0x6e, 0x61, 0x6d, 0x65, 0x0a,
10 0x20, 0x20, 0x5b, 0x28, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x64,
11 0x65, 0x63, 0x6c, 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x29, 0x20,
12 0x28, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72,
13 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x29, 0x20, 0x28, 0x65, 0x72, 0x72, 0x6f,
14 0x72, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72,
15 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x29, 0x5d, 0x29, 0x0a
16};
17unsigned int query_zig_len = 165;
diff --git a/queries/zig.scm b/queries/zig.scm
new file mode 100644
index 0000000..60f57b3
--- /dev/null
+++ b/queries/zig.scm
@@ -0,0 +1,6 @@
1(function_declaration
2 name: (identifier) @fname)
3
4(variable_declaration
5 (identifier) @fname
6 [(struct_declaration) (enum_declaration) (error_set_declaration)])