diff options
author | ChrHorn | 2022-08-01 20:15:17 +0000 |
---|---|---|
committer | GitHub | 2022-08-01 20:15:17 +0000 |
commit | 59bf1669ece4e614cc4a351f400124021191bb51 (patch) | |
tree | 89544a6e28266ef10bdcf3718b51536c70d63c8d /runtime/queries/javascript/locals.scm | |
parent | 07019c390545bad1b3710a99cf2398eb6c7b151a (diff) |
javascript queries: fix parameters (#3280)
Diffstat (limited to 'runtime/queries/javascript/locals.scm')
-rw-r--r-- | runtime/queries/javascript/locals.scm | 8 |
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) |