Bug 274429

Summary: KDevelop syntax highlighting missing on #include inside namespace block
Product: [Applications] kdevelop Reporter: Cyp <cyp561>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 4.2.1   
Target Milestone: 4.2.0   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Cyp 2011-05-29 15:37:32 UTC
Version:           4.2.1 (using KDE 4.6.2) 
OS:                Linux

namespace Meow {
#include "test.h"
}
int main()
{
printf("%d %d\n", x, Meow::x);
}

After the above, where test.h just contains "int x;", the syntax highlighter finds the non-existent variable "x", but doesn't find the actual existing variable "Meow::x".

This apparently breaks syntax highlighting when using "Eigen::VectorXd v;" (as opposed to "using namespace Eigen; VectorXd v;").

(Kdevelop version is 4.2.2, not 4.2.1, but couldn't select that when reporting.)

Reproducible: Always
Comment 1 Milian Wolff 2011-05-30 15:35:12 UTC

*** This bug has been marked as a duplicate of bug 217180 ***
Comment 2 Aleix Pol 2013-03-31 00:53:43 UTC
Moving all the bugs from the CPP Parser. It was not well defined the difference between it and C++ Language Support and people kept reporting in both places indistinctively