protected function next()
 {
     parent::next();
     if ($this->isCurrent('[', '(', '{')) {
         $this->depth++;
     } elseif ($this->isCurrent(']', ')', '}')) {
         $this->depth--;
     }
 }