Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/rust/textobjects.scm')
| -rw-r--r-- | runtime/queries/rust/textobjects.scm | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/runtime/queries/rust/textobjects.scm b/runtime/queries/rust/textobjects.scm index e9ecb8ba..496f752e 100644 --- a/runtime/queries/rust/textobjects.scm +++ b/runtime/queries/rust/textobjects.scm @@ -1,8 +1,5 @@ (function_item - body: (_) @function.inside) @function.around - -(closure_expression - body: (_) @function.inside) @function.around + body: (_) @function.inside) @function.around(closure_expression body: (_) @function.inside) @function.around (struct_item body: (_) @class.inside) @class.around @@ -34,9 +31,6 @@ (arguments ((_) @parameter.inside . ","? @parameter.around) @parameter.around) -(field_initializer_list - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) - [ (line_comment) (block_comment) @@ -59,27 +53,3 @@ (function_item body: (_) @test.inside) @test.around (#eq? @_test_attribute "test")) - -(array_expression - (_) @entry.around) - -(tuple_expression - (_) @entry.around) - -(tuple_pattern - (_) @entry.around) - -; Commonly used vec macro initializer is special cased -(macro_invocation - (identifier) @_id (token_tree (_) @entry.around) - (#eq? @_id "vec")) - -(enum_variant) @entry.around - -(field_declaration - (_) @entry.inside) @entry.around - -(field_initializer - (_) @entry.inside) @entry.around - -(shorthand_field_initializer) @entry.around |