Skip to content

Commit

Permalink
fix: Outdated Rust queries after TS update
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics authored and the-mikedavis committed Nov 12, 2022
1 parent 53b70d8 commit e232333
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions runtime/queries/rust/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@
; ---
; Macros
; ---
(meta_item
(attribute
(identifier) @function.macro)
(attr_item
(attribute
[
(identifier) @function.macro
(scoped_identifier
Expand Down
5 changes: 3 additions & 2 deletions runtime/queries/rust/indents.scm
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@
.
(_) @expr-start
value: (_) @indent
alternative: (_)? @indent
(#not-same-line? @indent @expr-start)
(#set! "scope" "all")
)
(if_let_expression
(if_expression
.
(_) @expr-start
value: (_) @indent
condition: (_) @indent
(#not-same-line? @indent @expr-start)
(#set! "scope" "all")
)
Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/rust/textobjects.scm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

(; #[test]
(attribute_item
(meta_item
(attribute
(identifier) @_test_attribute))
; allow other attributes like #[should_panic] and comments
[
Expand Down

0 comments on commit e232333

Please sign in to comment.