char c = text.charAt(offset);
if(isEndBlock(c)){
int place = getPrevPlace(text, c, offset-1);
if(place >= 0){
fAnchor = ICharacterPairMatcher.LEFT;
return new Region(place, 1);
}
}
if(isQuoteCharacter(c)){
String substr = text.substring(0, offset);
int stoffset = substr.lastIndexOf(c);
int eqoffset = substr.lastIndexOf(delimiter);
if(stoffset > eqoffset){
int place = substr.lastIndexOf(c, offset - 1);
if(place >= 0){
fAnchor = ICharacterPairMatcher.LEFT;
return new Region(place, 1);
}
}
}
}
if(offset > 0){
char c = text.charAt(offset - 1);
if(isStartBlock(c)){
int place = getNextPlace(text, c, offset+1);
if(place >= 0){
fAnchor = ICharacterPairMatcher.RIGHT;
return new Region(place, 1);
}
}
if(isQuoteCharacter(c)){
String substr = text.substring(0, offset - 1);
int stoffset = substr.lastIndexOf(c);
int eqoffset = substr.lastIndexOf(delimiter);
if(stoffset < eqoffset){
int place = text.indexOf(c, offset);
if(place >= 0){
fAnchor = ICharacterPairMatcher.RIGHT;
return new Region(place, 1);
}
}
}
}
} catch(Exception ex){