on master help sign in
capture rust closures as function textobjects
4a27e2dMichael Davis
runtime/queries/rust/textobjects.scm+2
@@ -7,6 +7,8 @@
7 (function_item
7 (function_item
8 body: (_) @function.inside)) @function.around
8 body: (_) @function.inside)) @function.around
9
9
10+(closure_expression body: (_) @function.inside) @function.around
11+
10(
12(
11 [
13 [
12 (attribute_item)+
14 (attribute_item)+