diff options
Diffstat (limited to 'runtime/queries/ecma/locals.scm')
-rw-r--r-- | runtime/queries/ecma/locals.scm | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/runtime/queries/ecma/locals.scm b/runtime/queries/ecma/locals.scm index cc5f2e14..df8eb0d3 100644 --- a/runtime/queries/ecma/locals.scm +++ b/runtime/queries/ecma/locals.scm @@ -12,14 +12,28 @@ ; Definitions ;------------ -(pattern/identifier) @local.definition +; ...i +(rest_pattern + (identifier) @local.definition) + +; { i } +(object_pattern + (shorthand_property_identifier_pattern) @local.definition) -(pattern/rest_pattern +; { a: i } +(object_pattern + (pair_pattern + value: (identifier) @local.definition)) + +; [ i ] +(array_pattern (identifier) @local.definition) - + +; i => ... (arrow_function parameter: (identifier) @local.definition) +; const/let/var i = ... (variable_declarator name: (identifier) @local.definition) |