Unnamed repository; edit this file 'description' to name the repository.
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
(class_declaration
  body: (_) @class.inside) @class.around

(protocol_declaration
  body: (_) @class.inside) @class.around

(function_declaration
  body: (_) @function.inside) @function.around

(init_declaration
  body: (_) @function.inside) @function.around

(deinit_declaration
  body: (_) @function.inside) @function.around

(subscript_declaration
  (computed_property) @function.inside) @function.around

; Closures: the body lives in a `statements` child (the `{ … in }` signature is
; separate), so `*.inside` is the body alone; optional so empty closures match.
(lambda_literal
  (statements)? @function.inside) @function.around

(parameter
  (_) @parameter.inside) @parameter.around

(lambda_parameter
  (_) @parameter.inside) @parameter.around

(value_argument
  (_) @parameter.inside) @parameter.around

[
  (comment)
  (multiline_comment)
] @comment.inside

(comment)+ @comment.around

(multiline_comment) @comment.around