Skip to content

Commit 2492362

Browse files
committed
fix: Outdated Rust queries after TS update
Ref: tree-sitter/tree-sitter-rust@3ddebf4
1 parent 2760c94 commit 2492362

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

runtime/queries/rust/highlights.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@
271271
; ---
272272
; Macros
273273
; ---
274-
(meta_item
274+
(attribute
275275
(identifier) @function.macro)
276-
(attr_item
276+
(attribute
277277
[
278278
(identifier) @function.macro
279279
(scoped_identifier

runtime/queries/rust/textobjects.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
(; #[test]
4444
(attribute_item
45-
(meta_item
45+
(attribute
4646
(identifier) @_test_attribute))
4747
; allow other attributes like #[should_panic] and comments
4848
[

0 commit comments

Comments
 (0)