aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/kotlin/folds.scm
diff options
context:
space:
mode:
authorMichael Daffin2022-02-23 14:25:44 +0000
committerGitHub2022-02-23 14:25:44 +0000
commitf83843ceba65f7719d8b208eda0ebf15fae77603 (patch)
tree3048637d7fcc28e48eb564f9f4058d58e109925c /runtime/queries/kotlin/folds.scm
parent40eb1268c72b60f1249389c58892e7c45d268cff (diff)
Add kotlin language (#1689)
* Add kotlin language Queries taken from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/kotlin seem to work well enough for my needs though I don't use kotlin heavily. * Update lang-support doc * Updates the kotlin highlight query to use helixs scopes * Updates the queries from PR feedback * Adds 'shallow = true' to gitmodules * Removes kotlin locals.scm * Remove blank line Co-authored-by: Ivan Tham <pickfire@riseup.net> Co-authored-by: Ivan Tham <pickfire@riseup.net>
Diffstat (limited to 'runtime/queries/kotlin/folds.scm')
-rw-r--r--runtime/queries/kotlin/folds.scm17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/queries/kotlin/folds.scm b/runtime/queries/kotlin/folds.scm
new file mode 100644
index 00000000..768972b8
--- /dev/null
+++ b/runtime/queries/kotlin/folds.scm
@@ -0,0 +1,17 @@
+[
+ (import_list)
+
+ (when_expression)
+ (control_structure_body)
+
+ (lambda_literal)
+ (function_body)
+ (primary_constructor)
+ (secondary_constructor)
+ (anonymous_initializer)
+
+ (class_body)
+ (enum_class_body)
+
+ (interpolated_expression)
+] @fold