mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
show NaN or Infinity as KEYWORD instead of NUMBER
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user