[platform] illegal character highlighting restricted to Java (IDEA-CR-10947, IDEA-156731)

This commit is contained in:
Roman Shevchenko
2016-06-01 22:59:17 +03:00
parent 02490fdfee
commit eb871edf42
@@ -214,7 +214,9 @@ public class HighlightVisitorImpl extends JavaElementVisitor implements Highligh
catch (IndexNotReadyException ignored) { }
}
myHolder.add(DefaultHighlightUtil.checkBadCharacter(element));
if (!(myFile instanceof ServerPageFile)) {
myHolder.add(DefaultHighlightUtil.checkBadCharacter(element));
}
}
@Override