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

Bug 329196

Summary: Incorrect highlighting of strings with #defines inside
Product: [Tools] CDT Reporter: Dmitry Nezhevenko <dion>
Component: cdt-editorAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, jens.elmenthaler, malaperle
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:

Description Dmitry Nezhevenko CLA 2010-11-01 10:55:10 EDT
Build Identifier: I20100805-1700

Followed C/C++ code is incorrectly highlighted:

int main()
{
#define SOMESTR "Foo"
printf("Some string"SOMESTR"sdfsfsd")
}

..
Just after printf, rest of file is colored as string constant. Adding spaces around SOMESTR workarounds this. However since code is okay in terms of C++, CDT should support it.

This is CDT 5.1.0.201010080805

Reproducible: Always
Comment 1 Anton Leherbauer CLA 2010-11-02 05:14:31 EDT
This seems to be a regression caused by the fix for bug 323971.
Comment 2 Anton Leherbauer CLA 2010-11-03 09:49:27 EDT
Fixed in HEAD.
Comment 4 Anton Leherbauer CLA 2010-11-04 04:36:47 EDT
*** Bug 329416 has been marked as a duplicate of this bug. ***