Community
Participate
Working Groups
20071030-0010 type suffixes ('L', 'l', 'D', ...) are part of the number literal and should be colored as well long serialVersionUID = 1L; double d= 1.1D; float f= 1.1F;
André do you have time to look at this today or tomorrow? As number coloring is a new feature advertised in the New & Noteworthy we should fix this. It was also already mentioned in bug 63573.
Ye, I'll try to look at it later today. Can't promise anything certain, but should be feasible.
Great. Shouldn't be a big deal. The reason I ask is because we like people to own and maintain their contributions if possible.
Daniel, do you know if it's possible to use the new semantic highlighting functionality to highlight numbers instead of writing all the pattern matching code ourselves?
You could write a new semantic highlighting which can access the AST. For entry point see: org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings
Created attachment 81613 [details] Semantic syntax highlight support for numbers Attaching a hopefully final patch for highlighting of numbers. This one uses semantic highlighting. Hence, whatever the "real-time" compiler in eclipse considers a number literal will be highlighted.
Marking as dup of the main feature request which also contains the patch. *** This bug has been marked as a duplicate of bug 63573 ***