+ int nextcp=0;
+ if (schar == '[')
+ {
+ // node string contains Comment or structured/extended NH format info
+ /* if ((fcp-cp>1 && nf.substring(cp,fcp).trim().length()>1))
+ {
+ // will process in remains System.err.println("skipped text: '"+nf.substring(cp,fcp)+"'");
+ }
+ */
+ // verify termination.
+ com.stevesoft.pat.Regex comment = new com.stevesoft.pat.Regex(
+ "]");
+ if (comment.searchFrom(nf, fcp))
+ {
+ // Skip the comment field
+ nextcp=comment.matchedFrom()+1;
+ warningMessage = "Tree file contained comments which may confuse input algorithm.";
+ // Skip the comment field
+ // should advance fcp too here
+ // fcp = nextcp+1;
+ // schar = nf.charAt(nextcp+1);
+
+ // cp advanced at the end of default to nextcp
+ }
+ else
+ {
+ Error = ErrorStringrange(Error, "Unterminated comment", 3,
+ fcp, nf);
+ }