code: private void processComment() {
          templateReader.nextCharacter(); // Burning comment opening char.
          if (templateReader.startsWith(syntax.getDocumentTypeOpening())) {
              processSchemaComment();
              return;
          } else if (nestedComments) {
              processNestedComment();
              return;
          }
          while (templateReader.hasNextCharacter()) {
              final char commentCharacter = templateReader.nextCharacter();
              if (isCommentClosingMarker(commentCharacter) && templateReader.hasNextCharacter()
                      && templateReader.peekCharacter() == syntax.getTagClosing()) {
                  // Character was a comment closing sign and the next tag closed the comment.
                  templateReader.nextCharacter(); // Polling tag closing.
                  break;
              }
          }
      }
docs: Found an open tag starting with comment sign. Burning through characters up to the comment's end.