Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337637 - [editor] JavaScript comment highlighting in web page off by one
Summary: [editor] JavaScript comment highlighting in web page off by one
Status: RESOLVED WORKSFORME
Alias: None
Product: JSDT
Classification: WebTools
Component: Web (show other bugs)
Version: 3.3   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: 3.6   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-19 10:29 EST by Philippe Marschall CLA
Modified: 2013-10-30 16:07 EDT (History)
1 user (show)

See Also:


Attachments
screenshot (12.40 KB, image/png)
2011-02-19 10:30 EST, Philippe Marschall CLA
no flags Details
file to reproduce (516 bytes, text/html)
2011-02-19 10:31 EST, Philippe Marschall CLA
no flags Details
Correct highlighting (5.94 KB, image/jpeg)
2013-10-30 16:06 EDT, Chris Jaun CLA
no flags Details

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