final int start = elementRange.getStartOffset();
final int end = elementRange.getEndOffset();
if (start + 1 < end) {
TextRange range = null;
ASTNode astNode = tag.getNode();
if (tag instanceof CfmlTag) {
//if (tag instanceof CfmlTagFunctionImpl || tag instanceof CfmlTagComponentImpl || tag instanceof CfmlTagScriptImpl) {
range = buildRangeForBraces(range, astNode, CfmlTokenTypes.R_ANGLEBRACKET, CfmlTokenTypes.LSLASH_ANGLEBRACKET);
//}
}
else if (tag instanceof CfmlFunction) {
final ASTNode body = astNode.findChildByType(CfmlElementTypes.FUNCTIONBODY);
if (body != null) {
range = buildRange(range, body.getStartOffset(), body.getTextRange().getEndOffset());
}
}
else if (tag instanceof PsiComment) {
boolean isColdFusionComment = astNode.getElementType() == CfmlTokenTypes.COMMENT;
int endIndex = astNode.getText().lastIndexOf(isColdFusionComment ? "--->" : "*/");