!759 p { String s = loadMainJava(); // process include statements for (int n = 0; n < 1000; n++) { Matcher m = Pattern.compile("!include (#\\d+)").matcher(s); StringBuffer buf = new StringBuffer(); if (!m.find()) break; else do { String includedSrc = loadSnippet(m.group(1)); m.appendReplacement(buf, m.quoteReplacement(includedSrc)); } while (m.find()); m.appendTail(buf); s = buf.toString(); } saveMainJava(s); }