on master help sign in
fix: Outdated Rust queries after TS update
e232333Alexis (Poliorcetics) Bourget
runtime/queries/rust/highlights.scm+2−2
@@ -271,9 +271,9 @@
271; ---
271; ---
272; Macros
272; Macros
273; ---
273; ---
274−(meta_item
274+(attribute
275 (identifier) @function.macro)
275 (identifier) @function.macro)
276−(attr_item
276+(attribute
277 [
277 [
278 (identifier) @function.macro
278 (identifier) @function.macro
279 (scoped_identifier
279 (scoped_identifier
runtime/queries/rust/indents.scm+3−2
@@ -51,13 +51,14 @@
51 .
51 .
52 (_) @expr-start
52 (_) @expr-start
53 value: (_) @indent
53 value: (_) @indent
54+ alternative: (_)? @indent
54 (#not-same-line? @indent @expr-start)
55 (#not-same-line? @indent @expr-start)
55 (#set! "scope" "all")
56 (#set! "scope" "all")
56)
57)
57−(if_let_expression
58+(if_expression
58 .
59 .
59 (_) @expr-start
60 (_) @expr-start
60− value: (_) @indent
61+ condition: (_) @indent
61 (#not-same-line? @indent @expr-start)
62 (#not-same-line? @indent @expr-start)
62 (#set! "scope" "all")
63 (#set! "scope" "all")
63)
64)
runtime/queries/rust/textobjects.scm+1−1
@@ -42,7 +42,7 @@
42
42
43(; #[test]
43(; #[test]
44 (attribute_item
44 (attribute_item
45− (meta_item
45+ (attribute
46 (identifier) @_test_attribute))
46 (identifier) @_test_attribute))
47 ; allow other attributes like #[should_panic] and comments
47 ; allow other attributes like #[should_panic] and comments
48 [
48 [