blob: 264258c258192cba06f07c44286d0d571547009f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
|