120121122123124125126127128129130
writer.write(' '); } // a comment writer.write('-'); writer.enableWordwrap(false); // disable wordwrap for comment while ((c = reader.read()) != -1) { if (c == '\r') continue; // copy comment directly
131132133134135136137138139140141
writer.write(c); if (c == '\n') break; } writer.enableWordwrap(true); // re-enable wordwrap for comment } else if (c == 'p' && !Character.isJavaIdentifierPart(prev) && reader.has(7) && reader.readAhead(6).equals("rocess") && !Character.isJavaIdentifierPart(reader.readAhead(7).charAt(6))) { // 'process' keyword writer.write(c); writer.write(reader.read(6)); writer.write(' ');