Debian Codegraph @

runtime/queries/sway/textobjects.scm

raw symbols SCIP
1 (function_item
2 body: (_) @function.inside) @function.around(closure_expression body: (_) @function.inside) @function.around
3
4 (struct_item
5 body: (_) @class.inside) @class.around
6
7 (enum_item
8 body: (_) @class.inside) @class.around
9
10 (trait_item
11 body: (_) @class.inside) @class.around
12
13 (impl_item
14 body: (_) @class.inside) @class.around
15
16 (parameters
17 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
18
19 (type_parameters
20 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
21
22 (type_arguments
23 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
24
25 (closure_parameters
26 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
27
28 (arguments
29 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
30
31 [
32 (line_comment)
33 (block_comment)
34 ] @comment.inside
35
36 (line_comment)+ @comment.around
37
38 (block_comment) @comment.around
39
40 (; #[test]
41 (attribute_item
42 (attribute
43 (identifier) @_test_attribute))
44 ; allow other attributes like #[should_panic] and comments
45 [
46 (attribute_item)
47 (line_comment)
48 ]*
49 ; the test function
50 (function_item
51 body: (_) @test.inside) @test.around
52 (#eq? @_test_attribute "test"))