protected void reLexHTMLBLock(int blockStart,int blockEnd,int lastNonspaceCharacterOffset,IElementType templateElementType){
  List<CustomToken> tokens=new ArrayList<CustomToken>();
  int myOffset=lexSpacesInRange(blockStart,blockEnd,tokens);
  if (myOffset <= lastNonspaceCharacterOffset) {
    tokens.add(new CustomToken(myOffset,lastNonspaceCharacterOffset + 1,templateElementType));
  }
  if (lastNonspaceCharacterOffset > -1) {
    lexSpacesInRange(lastNonspaceCharacterOffset + 1,blockEnd,tokens);
  }
  for (int i=tokens.size() - 1; i >= 0; i--) {
    unshiftPreparsedToken(tokens.get(i));
  }
}

protected void reLexHTMLBLock ( int blockStart , int blockEnd , int lastNonspaceCharacterOffset , IElementType templateElementType ) { List < CustomToken > tokens = new ArrayList < CustomToken > ( ) ; int myOffset = lexSpacesInRange ( blockStart , blockEnd , tokens ) ; if ( myOffset <= lastNonspaceCharacterOffset ) { tokens . add ( new CustomToken ( myOffset , lastNonspaceCharacterOffset + 1 , templateElementType ) ) ; } if ( lastNonspaceCharacterOffset > - 1 ) { lexSpacesInRange ( lastNonspaceCharacterOffset + 1 , blockEnd , tokens ) ; } for ( int i = tokens . size ( ) - 1 ; i >= 0 ; i -- ) { unshiftPreparsedToken ( tokens . get ( i ) ) ; } }
lexes block cut off heading and tailing spaces / newlines and put them in the beginning of preparsed tokens
