Elffuss BraidHub

kikocis/continue public

main · 644 BRawPermalink
1(
2 (comment)* @comment
3 .
4 (function_declaration
5 name: (identifier) @name.definition.function
6 parameters: (_) @parameters
7 result: (_)? @return_type
8 ) @definition.function
9 (#strip! @comment "^//\\s*")
10 (#set-adjacent! @comment @definition.function)
11)
12
13(
14 (comment)* @comment
15 .
16 (method_declaration
17 receiver: (_) @receiver
18 name: (field_identifier) @name.definition.method
19 parameters: (_) @parameters
20 result: (_)? @return_type
21 ) @definition.method
22 (#strip! @comment "^//\\s*")
23 (#set-adjacent! @comment @definition.method)
24)
25
26(type_spec
27 name: (type_identifier) @name.definition.type) @definition.type