Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/luau/locals.scm')
| -rw-r--r-- | runtime/queries/luau/locals.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/runtime/queries/luau/locals.scm b/runtime/queries/luau/locals.scm new file mode 100644 index 00000000..484d824d --- /dev/null +++ b/runtime/queries/luau/locals.scm @@ -0,0 +1,25 @@ +[ + (block) + (fn_stmt) + (local_fn_stmt) + (anon_fn) + (for_range_stmt) + (for_in_stmt) +] @local.scope + +(_ + parameter_name: (name) @local.definition.variable.parameter +) + +(binding + variable_name: (name) @local.definition.variable +) + +(var + variable_name: (name) @local.reference +) + +; (call_stmt +; . +; method_table: (name) @local.reference +; ) |