helix/runtime/queries/kotlin/indents.scm
2025-02-20 11:58:27 -06:00

44 lines
789 B
Scheme

[
(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