#autoload

compstate[restore]=no

delim=$PREFIX[1]
compset -p 1

local matchl="<({[" matchr=">)}]"
integer ind=${matchl[(I)$delim]}

(( ind )) && delim=$matchr[ind]

if compset -P "[^$delim]#$delim"; then
  return 0
else
  return 1
fi
