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): Publican v2.1 How reproducible: 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. Actual results: Results appear as per the attached picture. Expected results: Parameterized, and Parameterless Annotations are highlighted correctly, and classnames are formatted appropriately. Additional info:
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.