Skip to content

Commit f5e53e5

Browse files
authored
Capture all child nodes in block for rust
1 parent 8824e3b commit f5e53e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

queries/rust/textobjects.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@
109109

110110
; blocks
111111
(block
112-
(_)? @block.inner) @block.outer
112+
(_)* @block.inner) @block.outer
113113

114114
(unsafe_block
115-
(_)? @block.inner) @block.outer
115+
(_)* @block.inner) @block.outer
116116

117117
; calls
118118
(macro_invocation) @call.outer

0 commit comments

Comments
 (0)