about summary refs log tree commit diff
path: root/Completion/Base/_subscript
blob: e783d04e748ac3beb3696ae0de7ad52930b176e1 (plain) (blame)
1
2
3
4
5
6
7
#defcomp -subscript-

if [[ ${(Pt)${compstate[parameter]}} = assoc* ]]; then
  compgen -S ']' -k "( ${(kP)${compstate[parameter]}} )"
else
  _compalso -math-
fi