Bug 104979 - Incorrect syntax highlighting for identifier within comment
Summary: Incorrect syntax highlighting for identifier within comment
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
: 104984 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-25 05:21 EDT by Martin Olsson CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Olsson CLA 2005-07-25 05:21:50 EDT
Insert the following snippet inside any Java editor:

public void setActiveEditor(IAction action, IEditorPart targetEditor) {
  if (targetEditor instanceof DUPEditor)
    editor = (DUPEditor) targetEditor;
  /*else
    editor = null; 
    TODO think about this */
}

...and then add /* before the word public so that it becomes:

/*public void setActiveEditor(IAction action, IEditorPart targetEditor) {
  if (targetEditor instanceof DUPEditor)
    editor = (DUPEditor) targetEditor;
  /*else
    editor = null; 
    TODO think about this */
}

Now the "editor" part of "editor = null" will be incorrectly highlighted.
Comment 1 Tom Hofmann CLA 2005-07-25 05:46:18 EDT
please reopen specifying exactly the actual and expected results. Also see
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-text-home/development/bug-incomplete.htm
Comment 2 Markus Keller CLA 2005-07-25 06:53:52 EDT
*** Bug 104984 has been marked as a duplicate of this bug. ***
Comment 3 Dani Megert CLA 2007-06-22 09:59:25 EDT
Get rid of deprecated state.
Comment 4 Dani Megert CLA 2007-06-22 10:04:38 EDT
.