(function_definition) @local.scope

(parameter
  name: (identifier) @local.definition)

(identifier) @local.reference