pQuery\HtmlParserBase::parse_comment PHP Метод

parse_comment() публичный Метод

Parse comment tags
public parse_comment ( ) : boolean
Результат boolean
    function parse_comment()
    {
        $this->pos += 3;
        if ($this->next_pos('-->', false) !== self::TOK_UNKNOWN) {
            $this->status['comment'] = $this->getTokenString(1, -1);
            --$this->pos;
        } else {
            $this->status['comment'] = $this->getTokenString(1, -1);
            $this->pos += 2;
        }
        $this->status['last_pos'] = $this->pos;
        return true;
    }