aboutsummaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/kotlin.h18
-rw-r--r--queries/kotlin.scm8
2 files changed, 26 insertions, 0 deletions
diff --git a/queries/kotlin.h b/queries/kotlin.h
new file mode 100644
index 0000000..2b9a386
--- /dev/null
+++ b/queries/kotlin.h
@@ -0,0 +1,18 @@
1unsigned char query_kotlin[] = {
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 0x22, 0x66, 0x75, 0x6e, 0x22, 0x20, 0x40, 0x66, 0x74, 0x79, 0x70, 0x65,
5 0x0a, 0x20, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x20, 0x28, 0x69, 0x64,
6 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x29, 0x20, 0x40, 0x66,
7 0x6e, 0x61, 0x6d, 0x65, 0x0a, 0x20, 0x20, 0x28, 0x66, 0x75, 0x6e, 0x63,
8 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x70,
9 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x29, 0x20, 0x40,
10 0x66, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x29, 0x0a, 0x0a, 0x28, 0x63,
11 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x61,
12 0x74, 0x69, 0x6f, 0x6e, 0x0a, 0x20, 0x20, 0x22, 0x63, 0x6c, 0x61, 0x73,
13 0x73, 0x22, 0x20, 0x40, 0x66, 0x74, 0x79, 0x70, 0x65, 0x0a, 0x20, 0x20,
14 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x20, 0x28, 0x69, 0x64, 0x65, 0x6e, 0x74,
15 0x69, 0x66, 0x69, 0x65, 0x72, 0x29, 0x20, 0x40, 0x66, 0x6e, 0x61, 0x6d,
16 0x65, 0x29, 0x0a
17};
18unsigned int query_kotlin_len = 171;
diff --git a/queries/kotlin.scm b/queries/kotlin.scm
new file mode 100644
index 0000000..a507edf
--- /dev/null
+++ b/queries/kotlin.scm
@@ -0,0 +1,8 @@
1(function_declaration
2 "fun" @ftype
3 name: (identifier) @fname
4 (function_value_parameters) @fparams)
5
6(class_declaration
7 "class" @ftype
8 name: (identifier) @fname)