summaryrefslogtreecommitdiff
path: root/queries/typescript
diff options
context:
space:
mode:
authorThePrimeAgain <theprimeagain@theprimeagain.com>2025-11-24 10:16:49 -0700
committerThePrimeAgain <theprimeagain@theprimeagain.com>2025-11-24 10:16:49 -0700
commit65da89fa675807e4ade0bbe7e8f8404f991ec6a9 (patch)
tree652fa4880a3a6761760feb6f6c2c604bbbf321ab /queries/typescript
parent2094e1907b6dc759f6639d557e591746db60ea41 (diff)
downloada4-65da89fa675807e4ade0bbe7e8f8404f991ec6a9.tar.xz
a4-65da89fa675807e4ade0bbe7e8f8404f991ec6a9.zip
99
Diffstat (limited to 'queries/typescript')
-rw-r--r--queries/typescript/cockpit-scope.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/typescript/cockpit-scope.scm b/queries/typescript/cockpit-scope.scm
new file mode 100644
index 0000000..d4a5a27
--- /dev/null
+++ b/queries/typescript/cockpit-scope.scm
@@ -0,0 +1,6 @@
+(function_declaration name: (identifier) @function.name) @function.decl
+(function_declaration) @context.scope
+(function) @context.scope
+(arrow_function) @context.scope
+(method_definition) @context.scope
+(class_declaration) @context.scope