show NaN or Infinity as KEYWORD instead of NUMBER

This commit is contained in:
Vladimir Krivosheev
2013-08-30 16:25:34 +02:00
parent ae52dd26c3
commit 1bb97bb25c
@@ -36,4 +36,8 @@ public class PrimitiveXValuePresenter extends XValuePresenter {
public void append(@NotNull String value, @NotNull ColoredTextContainer text, boolean changed) {
text.append(value, SimpleTextAttributes.fromTextAttributes(EditorColorsManager.getInstance().getGlobalScheme().getAttributes(textAttributesKey)));
}
public static XValuePresenter forNumber(String value) {
return value.equals("NaN") || value.equals("Infinity") ? KEYWORD : NUMBER;
}
}