packages/jstr/index.js
function addCode(script, match, filePath) {
  var leftDeli = match[1], code = match[2];
  if(leftDeli==='<@' || leftDeli==='<!--@='){
    script.push('__p(escape(' + code + '));');
  }
  else if(leftDeli==='<@|' || leftDeli==='<!--@|'){//no escape
    script.push('__p(' + code + ');');
  }
  else{//<!--@ -->
    script.push(code);

    //possible single-line comment check
    var lastLine = code.split('\n').slice(-1)[0];
    if(lastLine.indexOf('//')>=0){
      /*eslint-disable no-console*/
      if(!filePath) console.warn('detect a possible single-line comment: %s', lastLine);
      else console.warn('detect a possible single-line comment in file %s: %s', filePath, lastLine);
      /*eslint-enable no-console*/
    }
    if(code.slice(-1)!==';') script.push(';');
  }
}
function addCode(script, match, filePath) {
  var leftDeli = match[1], code = match[2];
  if(leftDeli==='<@' || leftDeli==='<!--@='){
    script.push('__p(escape(' + code + '));');
  }
  else if(leftDeli==='<@|' || leftDeli==='<!--@|'){//no escape
    script.push('__p(' + code + ');');
  }
  else{//<!--@ -->
    script.push(code);

    //possible single-line comment check
    var lastLine = code.split('\n').slice(-1)[0];
    if(lastLine.indexOf('//')>=0){
      /*eslint-disable no-console*/
      if(!filePath) console.warn('detect a possible single-line comment: %s', lastLine);
      else console.warn('detect a possible single-line comment in file %s: %s', filePath, lastLine);
      /*eslint-enable no-console*/
    }
    if(code.slice(-1)!==';') script.push(';');
  }
}
function addCode ( script , match , filePath ) { var leftDeli = match [ 1 ] , code = match [ 2 ] ; if ( leftDeli === '<@' || leftDeli === '<!--@=' ) { script . push ( '__p(escape(' + code + '));' ) ; } else if ( leftDeli === '<@|' || leftDeli === '<!--@|' ) { //no escape
 script . push ( '__p(' + code + ');' ) ; } else { //<!--@ -->
 script . push ( code ) ; //possible single-line comment check
 var lastLine = code . split ( '\n' ) . slice ( - 1 ) [ 0 ] ; if ( lastLine . indexOf ( '//' ) >= 0 ) { /*eslint-disable no-console*/ if ( ! filePath ) console . warn ( 'detect a possible single-line comment: %s' , lastLine ) ; else console . warn ( 'detect a possible single-line comment in file %s: %s' , filePath , lastLine ) ; /*eslint-enable no-console*/ } if ( code . slice ( - 1 ) !== ';' ) script . push ( ';' ) ; } }
the code, which is in the delimiters
the code which is in the delimiters