src/parser.js
function splitLines(comment){
  if(!comment || !(comment = comment[1]))return ''; 
  
  var result = comment.split('\n'), line;

  for(var i in result){
    // Remove a leading asterisk
    line = result[i].replace(/^\s*\*?(.*)$/, "$1").split('//');
    // Split line at // and return the first two segments
    result[i] = [(line[0]||'').trim(), (line[1]||'').trim()];
  }
  return result;
}
function splitLines(comment){
  if(!comment || !(comment = comment[1]))return ''; 
  
  var result = comment.split('\n'), line;

  for(var i in result){
    // Remove a leading asterisk
    line = result[i].replace(/^\s*\*?(.*)$/, "$1").split('//');
    // Split line at // and return the first two segments
    result[i] = [(line[0]||'').trim(), (line[1]||'').trim()];
  }
  return result;
}
function splitLines ( comment ) { if ( ! comment || ! ( comment = comment [ 1 ] ) ) return '' ; var result = comment . split ( '\n' ) , line ; for ( var i in result ) { // Remove a leading asterisk line = result [ i ] . replace ( / ^\s*\*?(.*)$ / , "$1" ) . split ( '//' ) ; // Split line at // and return the first two segments result [ i ] = [ ( line [ 0 ] || '' ) . trim ( ) , ( line [ 1 ] || '' ) . trim ( ) ] ; } return result ; }
Splits successive lines of the form ... // ... into a left and
right side.
@private
Splits successive lines of the form ... // ... into a left and right side .