private void processTag(final StringBuilder builder){
  boolean started=false;
  while (templateReader.hasNextCharacter()) {
    final char tagCharacter=templateReader.nextCharacter();
    if (!started && Strings.isWhitespace(tagCharacter)) {
      continue;
    }
    started=true;
    if (tagCharacter == syntax.getArgumentOpening()) {
      processArgument();
    }
 else     if (tagCharacter == syntax.getTagOpening() && isNextCharacterCommentOpening()) {
      processComment();
    }
 else     if (tagCharacter == syntax.getTagClosing()) {
      processTagEntity(builder);
      return;
    }
 else {
      builder.append(tagCharacter);
    }
  }
  throwError("Unclosed tag: " + builder.toString());
}

private void processTag ( final StringBuilder builder ) { boolean started = false ; while ( templateReader . hasNextCharacter ( ) ) { final char tagCharacter = templateReader . nextCharacter ( ) ; if ( ! started && Strings . isWhitespace ( tagCharacter ) ) { continue ; } started = true ; if ( tagCharacter == syntax . getArgumentOpening ( ) ) { processArgument ( ) ; } else if ( tagCharacter == syntax . getTagOpening ( ) && isNextCharacterCommentOpening ( ) ) { processComment ( ) ; } else if ( tagCharacter == syntax . getTagClosing ( ) ) { processTagEntity ( builder ) ; return ; } else { builder . append ( tagCharacter ) ; } } throwError ( "Unclosed tag: " + builder . toString ( ) ) ; }
found an open tag that is not a comment . collecting whole tag data .
