Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340015 - [syntax highlighting] Syntax highlighting does not recognize Unicode escapes
Summary: [syntax highlighting] Syntax highlighting does not recognize Unicode escapes
Status: CLOSED DUPLICATE of bug 3533
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-15 09:17 EDT by Markus Milleder CLA
Modified: 2011-03-15 09:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Milleder CLA 2011-03-15 09:17:07 EDT
Build Identifier: 20110213-1648

From the discussion about underhanded code in http://thedailywtf.com/Comments/The-Disgruntled-Bomb.aspx, comment http://thedailywtf.com/Comments/The-Disgruntled-Bomb.aspx?pg=5#340905


Reproducible: Always

Steps to Reproduce:
Paste the following in a Java file
// This is a friendly comment \u000A nasty code here

The whole line is painted as a comment.
The incremental compiler immediately notices "nasty code here" as invalid code.
While contrived, it isn't nice that syntax highlighting and parsing diverge.
Source->Format does the right thing: it breaks the line.

Real, nasty code that is valid could be a problem, otherwise I'd call it minor.
Comment 1 Olivier Thomann CLA 2011-03-15 09:20:38 EDT
Move to JDT/Text
Comment 2 Dani Megert CLA 2011-03-15 09:25:22 EDT

*** This bug has been marked as a duplicate of bug 3533 ***