summaryrefslogtreecommitdiff
path: root/after/queries/tsplayground/((program.scm
diff options
context:
space:
mode:
Diffstat (limited to 'after/queries/tsplayground/((program.scm')
-rw-r--r--after/queries/tsplayground/((program.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/after/queries/tsplayground/((program.scm b/after/queries/tsplayground/((program.scm
new file mode 100644
index 0000000..e2e092d
--- /dev/null
+++ b/after/queries/tsplayground/((program.scm
@@ -0,0 +1,6 @@
+((program
+ (variable_declarator
+ _ (identifier) @variable_name
+ _ @assignment
+ (identifier) @_function_name))
+ (#set! @assignment (= _ @variable_name)))