aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/rust/locals.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/rust/locals.scm')
-rw-r--r--runtime/queries/rust/locals.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/queries/rust/locals.scm b/runtime/queries/rust/locals.scm
index 6428f9b4..9c85b84a 100644
--- a/runtime/queries/rust/locals.scm
+++ b/runtime/queries/rust/locals.scm
@@ -1,6 +1,7 @@
; Scopes
(block) @local.scope
+(closure_expression) @local.scope
; Definitions
@@ -10,7 +11,7 @@
(let_declaration
pattern: (identifier) @local.definition)
-(closure_parameters (identifier)) @local.definition
+(closure_parameters (identifier) @local.definition)
; References
(identifier) @local.reference