diff --git a/queries/teal/locals.scm b/queries/teal/locals.scm index 5feb3e5f5..273f9f280 100644 --- a/queries/teal/locals.scm +++ b/queries/teal/locals.scm @@ -8,7 +8,9 @@ (arg_name) @definition.parameter (functiondef) @scope -(function_statement (function_name) @definition.function) @scope +((function_statement + (function_name) @definition.function) @scope + (#set! definition.function.scope "parent")) (program) @scope (if_statement) @scope