lib/lexer.js
function(str){
    var lines = str.match(/\n/g)
      , idx = str.lastIndexOf('\n');

    if (lines) this.lineno += lines.length;
    this.column = ~idx
      ? str.length - idx
      : this.column + str.length;
  }
function(str){
    var lines = str.match(/\n/g)
      , idx = str.lastIndexOf('\n');

    if (lines) this.lineno += lines.length;
    this.column = ~idx
      ? str.length - idx
      : this.column + str.length;
  }
function ( str ) { var lines = str . match ( / \n / g ) , idx = str . lastIndexOf ( '\n' ) ; if ( lines ) this . lineno += lines . length ; this . column = ~ idx ? str . length - idx : this . column + str . length ; }
Move current line and column position.

@param {String} str
@api private
Move current line and column position .