Java Generics Syntax highlighting
Daniel Guilderson <[email protected]> Tue, 24 Jul 2007 16:57:01 -0400
| Newsgroups | gmane.emacs.jdee |
|---|---|
| Message-ID | <[email protected]> |
Is anyone working on syntax highlighting for Java Generics in JDE? The current syntax highlighting doesn't work too well with Java Generics. Attached is an example of what I'm talking about (in html). Dan
test.html
(text/html, 1.4 KB)
<html>
<head>
<title>Emacs Example</title>
</head>
<body>
<p>Before Java Generics:</p>
<p>
<font color="green">Vector</font> <font color="#CC9966">messages</font> = <font color="#CC00FF">new</font> <font color="green">Vector</font>();
</p>
<p>Currently with Java Generics:</p>
<p>
Vector<Object> messages = <font color="#CC00FF">new</font> <font color="green">Vector</font><Object>();
</p>
<p>Something like this would be better:</p>
<p>
<font color="green">Vector<Object></font> <font color="#CC9966">messages</font> = <font color="#CC00FF">new</font> <font color="green">Vector<Object></font>();
</p>
<p>Or this:</p>
<p>
<font color="green">Vector</font><Object> <font color="#CC9966">messages</font> = <font color="#CC00FF">new</font> <font color="green">Vector</font><Object>();
</p>
<p>Or this:</p>
<p>
<font color="green">Vector</font><font color="navy"><Object></font> <font color="#CC9966">messages</font> = <font color="#CC00FF">new</font> <font color="green">Vector</font><font color="navy"><Object></font>();
</p>
<p>Or maybe this would make the most sense:</p>
<p>
<font color="green">Vector</font><<font color="green">Object</font>> <font color="#CC9966">messages</font> = <font color="#CC00FF">new</font> <font color="green">Vector</font><<font color="green">Object</font>>();
</p>
</body>
</html>