add: var m = segment.indexOf(');'); lines.push(segment.slice(0, m)); lines.push(';\n <span class="output">&rarr; '); lines.push(output.strip()); lines.push('</span>'); lines.push(segment.slice(m+2)); 
context:     lines.each(function(line) {        var match = line.match(/^\/\/\s*(.*)/);        if (match) {            line = match[1];            rec || records.push(rec = {lines: [], toHTML: formatComment});            if (match = line.match(/\s*::\s*(.*)/))                rec.signature = '<div class="signature"><span class="label">Signature:</span> '+match[1].escapeHTML()+'</div>';            else {                line = line.escapeHTML().replace(/\+([\w()_]+)\+/g, '<var>$1</var>').replace(/\*(\w+)\*/g, '<em>$1</em>');                rec.lines.push(line);            }        } else if (rec) {            match = line.match(/^((?:\w+\.)*\w+)\s*=\s*function\s*\((.*?)\)/);            rec.target = rec.args = null;            if (match) {                rec.fname = match[1];                rec.args = match[2];            } else if ((match = line.match(/^function\s+(\w+)\s*\((.*?)\)/))) {                rec.fname = match[1];                rec.args = match[2];            } else if ((match = line.match(/^var\s+(\w+)\s+=/))) {                rec.fname = match[1];            } else {                info('no match', line);                records.pop();                return;            }            var match = rec.fname.match(/(.*\.)(\w+)/);            if (match) {                rec.target = match[1];                rec.fname = match[2];            }            rec.args = rec.args && rec.args.replace(/\/\*/g, '').replace(/\*\//g, '');            rec = null;        }    });
meta: 10840	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10840/7a8372a5868c6c38d02f197d98a9ae2972985a47/partials-demo.js/clean/partials-demo.js