Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329196 - Incorrect highlighting of strings with #defines inside
Summary: Incorrect highlighting of strings with #defines inside
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Anton Leherbauer CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
: 329416 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-01 10:55 EDT by Dmitry Nezhevenko CLA
Modified: 2010-11-04 04:36 EDT (History)
3 users (show)

See Also:


Attachments

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