Bug 58205 - [syntax highlighting] task tag coloring assumes tag is a single word
Summary: [syntax highlighting] task tag coloring assumes tag is a single word
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P5 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
: 197530 313737 (view as bug list)
Depends on: 22979
Blocks:
  Show dependency tree
 
Reported: 2004-04-12 17:18 EDT by Alvin Thompson CLA
Modified: 2010-05-25 11:53 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***