summaryrefslogtreecommitdiff
path: root/queries/teal/locals.scm
diff options
context:
space:
mode:
authorCorey Williamson <euclidianAce@protonmail.com>2020-10-04 20:13:32 -0500
committerStephan Seitz <stephan.lauf@yahoo.de>2020-10-05 12:02:59 +0200
commit85791a43164b6f9d1a641354713f39ecf95dd117 (patch)
tree9ccc2cdfd1a2f9030d3cbd3bed3e5a0e4179debd /queries/teal/locals.scm
parent0aa4940f8bd0a79ae338ee7308c7b1e83708c4e6 (diff)
Set function scope
Diffstat (limited to 'queries/teal/locals.scm')
-rw-r--r--queries/teal/locals.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/queries/teal/locals.scm b/queries/teal/locals.scm
index 5feb3e5f..273f9f28 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