aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChrHorn2022-08-06 10:58:06 +0000
committerGitHub2022-08-06 10:58:06 +0000
commit23f4a40a7a037948935aea7f24e20319029d174e (patch)
treee3b6d501b698ea58df65de0a329ae75d4cd9959a
parent63ec10950f56cf1daff1f29b083aa270c2f224ad (diff)
Rust queries: add `(function_item)` as a local scope (#3345)
-rw-r--r--runtime/queries/rust/locals.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/queries/rust/locals.scm b/runtime/queries/rust/locals.scm
index 905ded02..75e5d181 100644
--- a/runtime/queries/rust/locals.scm
+++ b/runtime/queries/rust/locals.scm
@@ -1,7 +1,10 @@
; Scopes
-(block) @local.scope
-(closure_expression) @local.scope
+[
+ (function_item)
+ (closure_expression)
+ (block)
+] @local.scope
; Definitions