|
4 | 4 | name: (identifier) @name) @definition.namespace |
5 | 5 |
|
6 | 6 | ( |
7 | | - (comment)* @doc |
8 | | - . |
9 | | - (struct_declaration |
10 | | - name: (identifier) @name |
11 | | - body: (declaration_list) @body) @definition.class |
12 | | - (#select-adjacent! @doc @definition.class) |
| 7 | + (comment)* @doc |
| 8 | + . |
| 9 | + (struct_declaration |
| 10 | + name: (identifier) @name |
| 11 | + body: (declaration_list) @body) @definition.class |
| 12 | + (#select-adjacent! @doc @definition.class) |
13 | 13 | ) |
14 | 14 |
|
15 | 15 | ( |
16 | | - (comment)* @doc |
17 | | - . |
18 | | - (record_declaration |
19 | | - name: (identifier) @name |
20 | | - body: (declaration_list)? @body) @definition.class |
21 | | - (#select-adjacent! @doc @definition.class) |
| 16 | + (comment)* @doc |
| 17 | + . |
| 18 | + (record_declaration |
| 19 | + name: (identifier) @name |
| 20 | + body: (declaration_list)? @body) @definition.class |
| 21 | + (#select-adjacent! @doc @definition.class) |
22 | 22 | ) |
23 | 23 |
|
24 | 24 | ( |
25 | | - (comment)* @doc |
26 | | - . |
27 | | - (enum_declaration |
28 | | - name: (identifier) @name |
29 | | - body: (enum_member_declaration_list) @body) @definition.enum |
30 | | - (#select-adjacent! @doc @definition.enum) |
| 25 | + (comment)* @doc |
| 26 | + . |
| 27 | + (enum_declaration |
| 28 | + name: (identifier) @name |
| 29 | + body: (enum_member_declaration_list) @body) @definition.enum |
| 30 | + (#select-adjacent! @doc @definition.enum) |
31 | 31 | ) |
32 | 32 |
|
33 | 33 | ( |
34 | | - (comment)* @doc |
35 | | - . |
36 | | - (class_declaration |
37 | | - name: (identifier) @name |
38 | | - body: (declaration_list) @body) @definition.class |
39 | | - (#select-adjacent! @doc @definition.class) |
| 34 | + (comment)* @doc |
| 35 | + . |
| 36 | + (class_declaration |
| 37 | + name: (identifier) @name |
| 38 | + body: (declaration_list) @body) @definition.class |
| 39 | + (#select-adjacent! @doc @definition.class) |
40 | 40 | ) |
41 | 41 |
|
42 | 42 | ( |
43 | | - (comment)* @doc |
44 | | - . |
45 | | - (operator_declaration |
46 | | - operator: _ @name |
47 | | - body: (_) @body) @definition.method |
48 | | - (#select-adjacent! @doc @definition.method) |
| 43 | + (comment)* @doc |
| 44 | + . |
| 45 | + (interface_declaration |
| 46 | + name: (identifier) @name |
| 47 | + body: (declaration_list) @body) @definition.interface |
| 48 | + (#select-adjacent! @doc @definition.interface) |
49 | 49 | ) |
50 | 50 |
|
51 | 51 | ( |
52 | | - (comment)* @doc |
53 | | - . |
54 | | - (constructor_declaration |
55 | | - name: (identifier) @name |
56 | | - body: (_) @body) @definition.constructor |
57 | | - (#select-adjacent! @doc @definition.constructor) |
| 52 | + (comment)* @doc |
| 53 | + . |
| 54 | + (operator_declaration |
| 55 | + operator: _ @name |
| 56 | + body: (_) @body) @definition.method |
| 57 | + (#select-adjacent! @doc @definition.method) |
58 | 58 | ) |
59 | 59 |
|
60 | 60 | ( |
61 | | - (comment)* @doc |
62 | | - . |
63 | | - (destructor_declaration |
64 | | - name: (identifier) @name |
65 | | - body: (_) @body) @definition.destructor |
66 | | - (#select-adjacent! @doc @definition.destructor) |
| 61 | + (comment)* @doc |
| 62 | + . |
| 63 | + (constructor_declaration |
| 64 | + name: (identifier) @name |
| 65 | + body: (_) @body) @definition.constructor |
| 66 | + (#select-adjacent! @doc @definition.constructor) |
67 | 67 | ) |
68 | 68 |
|
69 | 69 | ( |
70 | | - (comment)* @doc |
71 | | - . |
72 | | - (method_declaration |
73 | | - name: (identifier) @name |
74 | | - body: (_) @body) @definition.method |
75 | | - (#select-adjacent! @doc @definition.method) |
| 70 | + (comment)* @doc |
| 71 | + . |
| 72 | + (destructor_declaration |
| 73 | + name: (identifier) @name |
| 74 | + body: (_) @body) @definition.destructor |
| 75 | + (#select-adjacent! @doc @definition.destructor) |
| 76 | +) |
| 77 | + |
| 78 | +( |
| 79 | + (comment)* @doc |
| 80 | + . |
| 81 | + (method_declaration |
| 82 | + name: (identifier) @name |
| 83 | + body: (_) @body) @definition.method |
| 84 | + (#select-adjacent! @doc @definition.method) |
76 | 85 | ) |
0 commit comments