protected function isCommentEnd() {
        // EOF
        if ($this->scanner->current() === false) {
            // Hit the end.
            $this->parseError("Unexpected EOF in a comment.");
            return true;
        }

        // If it doesn't start with -, not the end.
        if ($this->scanner->current() != '-') {
            return false;
        }

        // Advance one, and test for '->'
        if ($this->scanner->next() == '-' && $this->scanner->peek() == '>') {
            $this->scanner->next(); // Consume the last '>'
            return true;
        }
        // Unread '-';
        $this->scanner->unconsume(1);
        return false;
    }
protected function isCommentEnd() {
        // EOF
        if ($this->scanner->current() === false) {
            // Hit the end.
            $this->parseError("Unexpected EOF in a comment.");
            return true;
        }

        // If it doesn't start with -, not the end.
        if ($this->scanner->current() != '-') {
            return false;
        }

        // Advance one, and test for '->'
        if ($this->scanner->next() == '-' && $this->scanner->peek() == '>') {
            $this->scanner->next(); // Consume the last '>'
            return true;
        }
        // Unread '-';
        $this->scanner->unconsume(1);
        return false;
    }
protected function isCommentEnd ( ) { // EOF if ( $ this -> scanner -> current ( ) === false ) { // Hit the end. $ this -> parseError ( "Unexpected EOF in a comment." ) ; return true ; } // If it doesn't start with -, not the end. if ( $ this -> scanner -> current ( ) != '-' ) { return false ; } // Advance one, and test for '->' if ( $ this -> scanner -> next ( ) == '-' && $ this -> scanner -> peek ( ) == '>' ) { $ this -> scanner -> next ( ) ; // Consume the last '>' return true ; } // Unread '-'; $ this -> scanner -> unconsume ( 1 ) ; return false ; }
Check if the scanner has reached the end of a comment.
Check if the scanner has reached the end of a comment .