diff --git a/runtime/queries/rust/locals.scm b/runtime/queries/rust/locals.scm index 905ded029ad7..75e5d181c13a 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