Bug 639751 - Java code @Annotations are highlighted incorrectly
Summary: Java code @Annotations are highlighted incorrectly
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 1.6
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-03 22:22 UTC by Jared MORGAN
Modified: 2015-08-10 01:22 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-04 06:36:15 UTC
Embargoed:


Attachments (Terms of Use)
Mixture of parameterless and parameterized annotations (9.96 KB, image/png)
2010-10-04 05:59 UTC, Ondrej Skutka
no flags Details
example of how kate highlights this text (51.32 KB, image/png)
2010-10-04 06:27 UTC, Jeff Fearn 🐞
no flags Details


Links
System ID Private Priority Status Summary Last Updated
KDE Software Compilation 253218 0 None None None Never

Description Jared MORGAN 2010-10-03 22:22:13 UTC
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:

Comment 1 Ondrej Skutka 2010-10-04 05:59:14 UTC
Created attachment 451340 [details]
Mixture of parameterless and parameterized annotations

Comment 2 Jeff Fearn 🐞 2010-10-04 06:27:51 UTC
Created attachment 451344 [details]
example of how kate highlights this text

Comment 3 Jeff Fearn 🐞 2010-10-04 06:36:15 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.