Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 58205

Summary: [syntax highlighting] task tag coloring assumes tag is a single word
Product: [Eclipse Project] JDT Reporter: Alvin Thompson <alvin>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P5 CC: frederic_fusier, jorgen_rapp, markus.kell.r, Olivier_Thomann
Version: 3.0Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 22979    
Bug Blocks:    

Description Alvin Thompson CLA 2004-04-12 17:18:49 EDT
for example, at work we use task tags to assign stuff to different people by
specifying their username plus a colon. thus i set my task tags to flag
occurences of 'alvin:'. the problem is, it doesn't highlight correctly because
of the ending ':'. this behavior has been there forever AFAIK; i'm just getting
around to bugifying it.
Comment 1 Dani Megert CLA 2004-04-13 03:00:58 EDT
Only JDT Text problem - JDT Core handles the case i.e. creates the task.

Christof, this is a low prio item.
Comment 2 Christof Marti CLA 2004-06-03 05:01:41 EDT
Post 3.0 item.
Comment 3 Alvin Thompson CLA 2005-08-02 11:45:30 EDT
it's post 3.0, so i'm reopening.  :)
Comment 4 Christof Marti CLA 2005-08-03 03:45:31 EDT
Still present in 3.1.
Comment 5 Dani Megert CLA 2007-07-24 02:26:24 EDT
The task tag matcher is word matcher and hence doesn't recognize tags with spaces  or other special characters.

We won't have time to work on this but a high quality patch would be welcome. The relevant code is in org.eclipse.jdt.internal.ui.text.JavaCommentScanner.TaskTagMatcher.
Comment 6 Dani Megert CLA 2007-07-24 02:26:52 EDT
*** Bug 197530 has been marked as a duplicate of this bug. ***
Comment 7 Dani Megert CLA 2007-07-24 02:52:40 EDT
It would be much easier if the (public) JDT Core scanner would recognize task tags as tokens. This is already in place for the internal scanner but it seems that JDT Core does not want to offer public comment scanning, see bug 22979.

WONTFIX unless we get support from JDT Core or a patch.
Comment 8 Dani Megert CLA 2010-05-25 11:53:48 EDT
*** Bug 313737 has been marked as a duplicate of this bug. ***