use of com.intellij.coldFusion.model.files.CfmlFileType in project intellij-plugins by JetBrains.
the class CfmlErrorFilter method shouldHighlightErrorElement.
public boolean shouldHighlightErrorElement(@NotNull final PsiErrorElement element) {
VirtualFile vFile = element.getContainingFile() != null ? element.getContainingFile().getVirtualFile() : null;
if (!(vFile != null && vFile.getFileType() instanceof CfmlFileType)) {
return true;
}
final Language language = element.getParent().getLanguage();
if (language == CfmlLanguage.INSTANCE || language == HTMLLanguage.INSTANCE || language == SqlLanguage.INSTANCE)
return true;
return false;
}
Aggregations