Red Hat Bugzilla – Bug 639751
Java code @Annotations are highlighted incorrectly
Last modified: 2015-08-09 21:22:06 EDT
Description of problem:
I'm raising this bug on behalf of a JBoss Community QA team-member. The original ticket can be read at: https://jira.jboss.org/browse/JBDOCS-327
The current code highlighting package doesn't handle java annotations well. Parameterized annotations are highlighted as methods and parameterless annotations are not highlighted at all.
Moreover having method names highlighted is not standard.
Version-Release number of selected component (if applicable):
100%. Content is consistently formatted incorrectly.
Steps to Reproduce:
1. Create a Java <programlisting> that contains annotations.
2. Publish using Publican.
3. Note the formatting.
Results appear as per the attached picture.
Parameterized, and Parameterless Annotations are highlighted correctly, and classnames are formatted appropriately.
Created attachment 451340 [details]
Mixture of parameterless and parameterized annotations
Created attachment 451344 [details]
example of how kate highlights this text
This text is highlighted exactly the same as how it's highlighted in Kate, which is exactly what syntax::highlighter::kate is supposed to do.
If this behaviour requires changing then a bug should be opened upstream, against Kate, to get the source changed.