Debian Codegraph @

runtime/queries/swift/textobjects.scm

raw symbols SCIP
1 (class_declaration
2 body: (_) @class.inside) @class.around
3
4 (protocol_declaration
5 body: (_) @class.inside) @class.around
6
7 (function_declaration
8 body: (_) @function.inside) @function.around
9
10 (init_declaration
11 body: (_) @function.inside) @function.around
12
13 (deinit_declaration
14 body: (_) @function.inside) @function.around
15
16 (subscript_declaration
17 (computed_property) @function.inside) @function.around
18
19 ; Closures: the body lives in a `statements` child (the `{ … in }` signature is
20 ; separate), so `*.inside` is the body alone; optional so empty closures match.
21 (lambda_literal
22 (statements)? @function.inside) @function.around
23
24 (parameter
25 (_) @parameter.inside) @parameter.around
26
27 (lambda_parameter
28 (_) @parameter.inside) @parameter.around
29
30 (value_argument
31 (_) @parameter.inside) @parameter.around
32
33 [
34 (comment)
35 (multiline_comment)
36 ] @comment.inside
37
38 (comment)+ @comment.around
39
40 (multiline_comment) @comment.around