summaryrefslogtreecommitdiff
path: root/runtime/queries/javascript/locals.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/javascript/locals.scm')
-rw-r--r--runtime/queries/javascript/locals.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/queries/javascript/locals.scm b/runtime/queries/javascript/locals.scm
index 5d680acf..cc5f2e14 100644
--- a/runtime/queries/javascript/locals.scm
+++ b/runtime/queries/javascript/locals.scm
@@ -12,7 +12,13 @@
; Definitions
;------------
-(pattern/identifier)@local.definition
+(pattern/identifier) @local.definition
+
+(pattern/rest_pattern
+ (identifier) @local.definition)
+
+(arrow_function
+ parameter: (identifier) @local.definition)
(variable_declarator
name: (identifier) @local.definition)