; const name = expression
(lexical_declaration
  (variable_declarator
    name: (identifier) @var.name
    value: (_) @var.init)) @var.decl

; Destructured object: const { a, b } = expression
(lexical_declaration
  (variable_declarator
    name: (object_pattern) @var.destructured.obj
    value: (_) @var.destructured.init)) @var.destructured

; Destructured array: const [a, b] = expression
(lexical_declaration
  (variable_declarator
    name: (array_pattern) @var.array.pattern
    value: (_) @var.array.init)) @var.array
