summaryrefslogtreecommitdiff
path: root/runtime/queries/javascript/highlights-params.scm
blob: 95ffc72485b5f20bd18c0bc2f48bfd467e53236b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
(formal_parameters
  [
    (identifier) @variable.parameter
    (array_pattern
      (identifier) @variable.parameter)
    (object_pattern
      [
        (pair_pattern value: (identifier) @variable.parameter)
        (shorthand_property_identifier_pattern) @variable.parameter
      ])
  ]
)