protected function bogusComment($leading = '') {

        // TODO: This can be done more efficiently when the
        // scanner exposes a readUntil() method.
        $comment = $leading;
        $tok = $this->scanner->current();
        do {
            $comment .= $tok;
            $tok = $this->scanner->next();
        } while ($tok !== false && $tok != '>');

        $this->flushBuffer();
        $this->events->comment($comment . $tok);
        $this->scanner->next();

        return true;
    }