From e398c24ba19948727affdc6a29254ac69a6b7699 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 03:35:02 -0300 Subject: syntax: helix's indents.scm vendored beside each grammar's textobjects.scm and embedded the same way (zig's adapted to this grammar's node names, rust's \A regexes written with ^, erlang's left out as it does not compile here), compiled when first asked for as a Lazy beside the textobjects, so a new line can take its indent from the tree Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- vendor/queries/kotlin/indents.scm | 51 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 vendor/queries/kotlin/indents.scm (limited to 'vendor/queries/kotlin') diff --git a/vendor/queries/kotlin/indents.scm b/vendor/queries/kotlin/indents.scm new file mode 100644 index 00000000..264258c2 --- /dev/null +++ b/vendor/queries/kotlin/indents.scm @@ -0,0 +1,51 @@ +; Vendored from helix (https://github.com/helix-editor/helix) at 278b24389: +; runtime/queries/kotlin/indents.scm. +; Licensed under the Mozilla Public License 2.0 (vendor/queries/helix.LICENSE, +; https://mozilla.org/MPL/2.0/). + +[ + (class_body) + (enum_class_body) + (lambda_literal) + + ; _block is hidden in the grammar, so list all public wrappers explicitly. + (function_body) + (anonymous_initializer) + (control_structure_body) + (secondary_constructor) + (try_expression) + (catch_block) + (finally_block) + + (property_declaration) + (assignment) + + (when_expression) + (call_expression) + (if_expression) + + ; Binary expressions + (multiplicative_expression) + (additive_expression) + (range_expression) + (infix_expression) + (elvis_expression) + (check_expression) + (comparison_expression) + (equality_expression) + (comparison_expression) + (equality_expression) + (conjunction_expression) + (disjunction_expression) + + (call_suffix) + (function_value_parameters) +] @indent + +[ + "}" + ")" + "]" +] @outdent + +(string_literal) @opaque -- cgit v1.3