mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 11:23:10 +03:00
Fix rust text objects (#3590)
This commit is contained in:
parent
e066782782
commit
db18206795
@ -1,58 +1,20 @@
|
||||
(
|
||||
[
|
||||
(attribute_item)+
|
||||
(line_comment)+
|
||||
]*
|
||||
.
|
||||
(function_item
|
||||
body: (_) @function.inside)) @function.around
|
||||
(function_item
|
||||
body: (_) @function.inside) @function.around(closure_expression body: (_) @function.inside) @function.around
|
||||
|
||||
(closure_expression body: (_) @function.inside) @function.around
|
||||
(struct_item
|
||||
body: (_) @class.inside) @class.around
|
||||
|
||||
(
|
||||
[
|
||||
(attribute_item)+
|
||||
(line_comment)+
|
||||
]*
|
||||
.
|
||||
(struct_item
|
||||
body: (_) @class.inside)) @class.around
|
||||
(enum_item
|
||||
body: (_) @class.inside) @class.around
|
||||
|
||||
(
|
||||
[
|
||||
(attribute_item)+
|
||||
(line_comment)+
|
||||
]*
|
||||
.
|
||||
(enum_item
|
||||
body: (_) @class.inside)) @class.around
|
||||
(union_item
|
||||
body: (_) @class.inside) @class.around
|
||||
|
||||
(
|
||||
[
|
||||
(attribute_item)+
|
||||
(line_comment)+
|
||||
]*
|
||||
.
|
||||
(union_item
|
||||
body: (_) @class.inside)) @class.around
|
||||
(trait_item
|
||||
body: (_) @class.inside) @class.around
|
||||
|
||||
(
|
||||
[
|
||||
(attribute_item)+
|
||||
(line_comment)+
|
||||
]*
|
||||
.
|
||||
(trait_item
|
||||
body: (_) @class.inside)) @class.around
|
||||
|
||||
(
|
||||
[
|
||||
(attribute_item)+
|
||||
(line_comment)+
|
||||
]*
|
||||
.
|
||||
(impl_item
|
||||
body: (_) @class.inside)) @class.around
|
||||
(impl_item
|
||||
body: (_) @class.inside) @class.around
|
||||
|
||||
(parameters
|
||||
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||||
|
Loading…
Reference in New Issue
Block a user