protected int checkCloseTagAndGetLength(CharSequence buffer,int offset,int bufferEnd){
  if (offset >= bufferEnd) {
    return -1;
  }
  String endTag=getEndTag();
  if (isBufferAtString(buffer,offset,endTag)) {
    return endTag.length();
  }
  if (StringUtil.containsChar(CHOMP_MODIFIERS,buffer.charAt(offset)) && isBufferAtString(buffer,offset + 1,endTag)) {
    return endTag.length() + 1;
  }
  return -1;
}

protected int checkCloseTagAndGetLength ( CharSequence buffer , int offset , int bufferEnd ) { if ( offset >= bufferEnd ) { return - 1 ; } String endTag = getEndTag ( ) ; if ( isBufferAtString ( buffer , offset , endTag ) ) { return endTag . length ( ) ; } if ( StringUtil . containsChar ( CHOMP_MODIFIERS , buffer . charAt ( offset ) ) && isBufferAtString ( buffer , offset + 1 , endTag ) ) { return endTag . length ( ) + 1 ; } return - 1 ; }
checks if lexer is at close tag with possible chomp modifier and returns close tag length
