Community
Participate
Working Groups
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
This seems to be a regression caused by the fix for bug 323971.
Fixed in HEAD.
*** cdt cvs genie on behalf of aleherbau *** Bug 329196 - Incorrect highlighting of strings with #defines inside [*] CPartitionerTest.java 1.8 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CPartitionerTest.java?root=Tools_Project&r1=1.7&r2=1.8 [*] FastCPartitionScanner.java 1.15 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/FastCPartitionScanner.java?root=Tools_Project&r1=1.14&r2=1.15
*** Bug 329416 has been marked as a duplicate of this bug. ***