Java highlighting update for Java 5 (generics)
Submitted by Wednesday, 3 June, 2009 - 14:26
on
Hi,
I'm programming in Java and I really love the highlighting of Java. However, in Java 5 a new feature has been added to the language: generics. For those who don't know (from http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html):
Generics provides a way for you to communicate the type of a collection to the compiler, so that it can be checked. Once the compiler knows the element type of the collection, the compiler can check that you have used the collection consistently and can insert the correct casts on values being taken out of the collection.
This is placed between '<' and '>'. It would be nice if the generics would be highlighted. As I'm not an expert, I did not succeed in correctly editting the current highlight specification of Java in jEdit; if I do, expression with a '<' inside will start hightling the remaining part.