Skip to content

Commit 9355a56

Browse files
committed
fix(nvim-treesitter): use attribute instead of meta_item
Ref: tree-sitter/tree-sitter-rust#163
1 parent b84b41f commit 9355a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

queries/rust/textobjects.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
(array_expression (_) @swappable)
66
(arguments (_) @swappable)
7+
(attribute) @swappable
78
(enum_variant) @swappable
89
(field_declaration) @swappable
910
(field_initializer_list (_) @swappable)
1011
(function_item) @swappable
1112
(match_arm) @swappable
12-
(meta_item) @swappable
1313
(ordered_field_declaration_list (_) @swappable)
1414
(parameters (_) @swappable)
1515
(use_list (_) @swappable)

0 commit comments

Comments
 (0)