original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Check if the scanner has reached the end of a comment.
docstring_tokens: Check if the scanner has reached the end of a comment .