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

Bug 337637

Summary: [editor] JavaScript comment highlighting in web page off by one
Product: [WebTools] JSDT Reporter: Philippe Marschall <philippe.marschall>
Component: WebAssignee: Project Inbox <jsdt.web-inbox>
Status: RESOLVED WORKSFORME QA Contact: Chris Jaun <cmjaun>
Severity: normal    
Priority: P3 CC: robert.munteanu
Version: 3.3   
Target Milestone: 3.6   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
screenshot
none
file to reproduce
none
Correct highlighting none

Description Philippe Marschall CLA 2011-02-19 10:29:24 EST
When having a single line JavaScript comment in a script section in a HTML document it can sometimes be that the last character of the comment is not highlighted as a comment (green) but normal JavaScript (black).
Comment 1 Philippe Marschall CLA 2011-02-19 10:30:19 EST
Created attachment 189346 [details]
screenshot

a screenshot displaying the problem
Comment 2 Philippe Marschall CLA 2011-02-19 10:31:21 EST
Created attachment 189347 [details]
file to reproduce

a minimal HTML file to reproduce the issue
Comment 3 Robert Munteanu CLA 2012-08-06 07:17:42 EDT
Still happens with JavaScript Development Tools 1.4.0.v201111090639-7H7DFeHFC7sRemSZgYbe4
Comment 4 Chris Jaun CLA 2013-10-30 16:06:34 EDT
Created attachment 237082 [details]
Correct highlighting
Comment 5 Chris Jaun CLA 2013-10-30 16:07:08 EDT
This appears to be working correctly in the 3.6 builds. See screenshot.