Debian Codegraph @

runtime/queries/kotlin/textobjects.scm

raw symbols SCIP
1 (function_declaration
2 (function_body)? @function.inside) @function.around
3
4 ; Unlike function_body above, the constructor body is does not have its own
5 ; symbol in the current grammar.
6 (secondary_constructor) @function.around
7
8 (class_declaration
9 (class_body)? @class.inside) @class.around
10
11 (class_declaration
12 (enum_class_body) @class.inside) @class.around
13
14 [
15 (line_comment)
16 (multiline_comment)
17 ] @comment.inside
18
19 (line_comment)+ @comment.around
20
21 (multiline_comment) @comment.around
22
23 (enum_entry) @entry.around
24 (lambda_literal) @entry.around
25 (property_declaration) @entry.around
26 (object_declaration) @entry.around
27 (assignment) @entry.around
28
29 ; TODO: This doesn't work with annotations yet, but fixing it without breaking
30 ; the case of multiple parameters is non-trivial.
31 (function_value_parameters
32 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
33
34 ; secondary constructor uses function_value_parameters above
35 (primary_constructor
36 ((_)@parameter.inside . ","? @parameter.around) @parameter.around)
37
38 (function_type_parameters
39 ((_)@parameter.inside . ","? @parameter.around) @parameter.around)
40
41 (value_arguments
42 ((_)@parameter.inside . ","? @parameter.around) @parameter.around)
43
44 (lambda_parameters
45 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)