fix: Outdated Rust queries after TS update

Ref: 3ddebf46e6
pull/4745/head
Alexis (Poliorcetics) Bourget 2 years ago committed by Michael Davis
parent 53b70d821e
commit e232333d4a

@ -271,9 +271,9 @@
; --- ; ---
; Macros ; Macros
; --- ; ---
(meta_item (attribute
(identifier) @function.macro) (identifier) @function.macro)
(attr_item (attribute
[ [
(identifier) @function.macro (identifier) @function.macro
(scoped_identifier (scoped_identifier

@ -51,13 +51,14 @@
. .
(_) @expr-start (_) @expr-start
value: (_) @indent value: (_) @indent
alternative: (_)? @indent
(#not-same-line? @indent @expr-start) (#not-same-line? @indent @expr-start)
(#set! "scope" "all") (#set! "scope" "all")
) )
(if_let_expression (if_expression
. .
(_) @expr-start (_) @expr-start
value: (_) @indent condition: (_) @indent
(#not-same-line? @indent @expr-start) (#not-same-line? @indent @expr-start)
(#set! "scope" "all") (#set! "scope" "all")
) )

@ -42,7 +42,7 @@
(; #[test] (; #[test]
(attribute_item (attribute_item
(meta_item (attribute
(identifier) @_test_attribute)) (identifier) @_test_attribute))
; allow other attributes like #[should_panic] and comments ; allow other attributes like #[should_panic] and comments
[ [

Loading…
Cancel
Save