HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/zsh/functions/Completion/Zsh/_in_vared
#compdef -vared-

local also

# Completion inside vared.

if [[ $compstate[vared] = *\[* ]]; then
  if [[ $compstate[vared] = *\]* ]]; then
    # vared on an array-element
    compstate[parameter]=${${compstate[vared]%%\]*}//\[/-}
    compstate[context]=value
    also=-value-
  else
    # vared on an array-value
    compstate[parameter]=${compstate[vared]%%\[*}
    compstate[context]=value
    also=-value-
  fi
else
  # vared on a parameter, let's see if it is an array
  compstate[parameter]=$compstate[vared]
  if [[ ${(tP)compstate[vared]} = *(array|assoc)* ]]; then
    compstate[context]=array_value
    also=-array-value-
  else
    compstate[context]=value
    also=-value-
  fi
fi

# Don't insert TAB in first column. Never.

compstate[insert]="${compstate[insert]//tab /}"

_dispatch "$also" "$also"