src/lexer/comments.js
function() {
    while (this.offset < this.size) {
      const ch = this.input();
      if (ch === "\n" || ch === "\r") {
        return this.tok.T_COMMENT;
      } else if (
        ch === "?" &&
        !this.aspTagMode &&
        this._input[this.offset] === ">"
      ) {
        this.unput(1);
        return this.tok.T_COMMENT;
      } else if (
        ch === "%" &&
        this.aspTagMode &&
        this._input[this.offset] === ">"
      ) {
        this.unput(1);
        return this.tok.T_COMMENT;
      }
    }
    return this.tok.T_COMMENT;
  }
function() {
    while (this.offset < this.size) {
      const ch = this.input();
      if (ch === "\n" || ch === "\r") {
        return this.tok.T_COMMENT;
      } else if (
        ch === "?" &&
        !this.aspTagMode &&
        this._input[this.offset] === ">"
      ) {
        this.unput(1);
        return this.tok.T_COMMENT;
      } else if (
        ch === "%" &&
        this.aspTagMode &&
        this._input[this.offset] === ">"
      ) {
        this.unput(1);
        return this.tok.T_COMMENT;
      }
    }
    return this.tok.T_COMMENT;
  }
function ( ) { while ( this . offset < this . size ) { const ch = this . input ( ) ; if ( ch === "\n" || ch === "\r" ) { return this . tok . T_COMMENT ; } else if ( ch === "?" && ! this . aspTagMode && this . _input [ this . offset ] === ">" ) { this . unput ( 1 ) ; return this . tok . T_COMMENT ; } else if ( ch === "%" && this . aspTagMode && this . _input [ this . offset ] === ">" ) { this . unput ( 1 ) ; return this . tok . T_COMMENT ; } } return this . tok . T_COMMENT ; }
Reads a single line comment
Reads a single line comment