on master help sign in
fix: Outdated Rust queries after TS update

Ref: https://github.com/tree-sitter/tree-sitter-rust/commit/3ddebf46e6fe5e27fa03dc07a829a766b9979c8d

commite232333d4aae5fc56182df896aec02c597590e4f authorAlexis (Poliorcetics) Bourget <alexis.bourget@gmail.com> dateFri 11 Nov 2022, 23:51 (4 years ago) parent53b70d8
3 files changed+6−5
runtime/queries/rust/highlights.scm+2−2 runtime/queries/rust/indents.scm+3−2 runtime/queries/rust/textobjects.scm+1−1
runtime/queries/rust/highlights.scm+2−2
@@ -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/indents.scm+3−2
@@ -51,13 +51,14 @@
5151 .
5252 (_) @expr-start
5353 value: (_) @indent
54+ alternative: (_)? @indent
5455 (#not-same-line? @indent @expr-start)
5556 (#set! "scope" "all")
5657)
57−(if_let_expression
58+(if_expression
5859 .
5960 (_) @expr-start
60− value: (_) @indent
61+ condition: (_) @indent
6162 (#not-same-line? @indent @expr-start)
6263 (#set! "scope" "all")
6364)
runtime/queries/rust/textobjects.scm+1−1
@@ -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 [