1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Parser.Statement.Uncomment = Ext.extend(Parser.Statement, { parse: function(stream) { var line; while (!stream.eof) { line = stream.readLine(); if (this.isEnd(line, stream)) { break; } this.pushBuffer(line.replace(/^([\s\t]*)\/\//, "$1"), !stream.eof); } return this.buffer; } });