Skip to content

Commit

Permalink
Rust queries: add (function_item) as a local scope (helix-editor#3345)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrHorn authored and thomasskk committed Sep 9, 2022
1 parent 933ab8c commit 6ece0ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions runtime/queries/rust/locals.scm
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
; Scopes

(block) @local.scope
(closure_expression) @local.scope
[
(function_item)
(closure_expression)
(block)
] @local.scope

; Definitions

Expand Down

0 comments on commit 6ece0ba

Please sign in to comment.